This commit is contained in:
nixo 2019-05-21 16:44:53 +02:00
parent 7776fcd05c
commit 8cd1b0b211
1 changed files with 1 additions and 2 deletions

View File

@ -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