From 79160856f89ce1e794cc9789e9abad4e1cae29d1 Mon Sep 17 00:00:00 2001 From: nixo Date: Tue, 21 May 2019 19:15:49 +0200 Subject: [PATCH] fix wrong bitrate --- JlSonic/api.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JlSonic/api.jl b/JlSonic/api.jl index 0627433..1be741c 100644 --- a/JlSonic/api.jl +++ b/JlSonic/api.jl @@ -546,7 +546,7 @@ function stream(req::Dict) @error e end # Ogg is not compativle with lower bitrates. Use something else? - bitrate = bitrate < 64 ? 64 : bitrate + bitrate = (bitrate != 0 && bitrate < 64) ? 64 : bitrate format = get(query, "format", "oga") songs = Beets.songs()