From 8cd1b0b21159df605007a4971fd0fcb77380db5e Mon Sep 17 00:00:00 2001 From: nixo Date: Tue, 21 May 2019 16:44:53 +0200 Subject: [PATCH] fixup --- JlSonic/api.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/JlSonic/api.jl b/JlSonic/api.jl index 58c58fb..de2907a 100644 --- a/JlSonic/api.jl +++ b/JlSonic/api.jl @@ -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