fix conversion
This commit is contained in:
parent
c9ef5c95a9
commit
c07dd34878
|
@ -519,7 +519,7 @@ function giveconverted(file, bitrate, format)
|
||||||
suffix = format
|
suffix = format
|
||||||
mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] : suffix
|
mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] : suffix
|
||||||
headers["Content-Type"] = mime
|
headers["Content-Type"] = mime
|
||||||
headers["Content-Length"] = length(data)
|
headers["Content-Length"] = string(length(data))
|
||||||
return Dict(:body => data, :headers => headers)
|
return Dict(:body => data, :headers => headers)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -542,6 +542,8 @@ function stream(req::Dict)
|
||||||
isa(e, ArgumentError) && 0
|
isa(e, ArgumentError) && 0
|
||||||
@error e
|
@error e
|
||||||
end
|
end
|
||||||
|
# Ogg is not compativle with lower bitrates. Use something else?
|
||||||
|
bitrate = bitrate < 64 ? 64 : bitrate
|
||||||
format = get(query, "format", "oga")
|
format = get(query, "format", "oga")
|
||||||
|
|
||||||
songs = Beets.songs()
|
songs = Beets.songs()
|
||||||
|
|
Loading…
Reference in New Issue