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 === nothing && return not_found("id")
|
||||
|
||||
output = bitrate == 0 ? sendfile(songs[m].path) :
|
||||
giveconverted(songs[m].path, bitrate, format)
|
||||
output = (bitrate == 0) ? sendfile(songs[m].path) : giveconverted(songs[m].path, bitrate, format)
|
||||
return output
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue