mp3lify

package module
v0.0.0-...-fbea54d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 13 Imported by: 0

README

mp3lify

Reverse proxy flac/wav to mp3

Why?

Sometimes, my network is not good enough to play lossless audios with streaming

Usage

Run it, put the original URL in querystring src, and it serves you the MP3 file

Basic token auth is provided with header field X-Auth-Token

Whole file caching is provided as caching the original audio files in the specified dir

Options & Config

Options is available in main/main.go, config is available in config.go, both with doc

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUrl

func CleanUrl(s string) (string, error)

func ConvertAudio

func ConvertAudio(r io.Reader, w io.Writer) error

func GetCache

func GetCache(src string) io.ReadCloser

func Listen

func Listen(addr string) error

func SetCache

func SetCache(src string) (io.WriteCloser, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL