fixup
This commit is contained in:
parent
7776fcd05c
commit
8cd1b0b211
|
@ -548,8 +548,7 @@ function stream(req::Dict)
|
||||||
m = findfirst(x -> (x.uuid == id), songs)
|
m = findfirst(x -> (x.uuid == id), songs)
|
||||||
m === nothing && return not_found("id")
|
m === nothing && return not_found("id")
|
||||||
|
|
||||||
output = bitrate == 0 ? sendfile(songs[m].path) :
|
output = (bitrate == 0) ? sendfile(songs[m].path) : giveconverted(songs[m].path, bitrate, format)
|
||||||
giveconverted(songs[m].path, bitrate, format)
|
|
||||||
return output
|
return output
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue