Fix #867: Fixed remaining transcoding issue with Subsonic API

This commit is contained in:
Eliot Berriot 2019-07-03 11:35:34 +02:00
parent 5e18333135
commit 38ab05195b
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 7 additions and 5 deletions

View file

@ -256,7 +256,7 @@ class SubsonicViewSet(viewsets.GenericViewSet):
if max_bitrate:
max_bitrate = max_bitrate * 1000
format = data.get("format", "raw") or None
format = data.get("format") or None
if max_bitrate and not format:
# specific bitrate requested, but no format specified
# so we use a default one, cf #867. This helps with clients