See #272: linting and changelog

This commit is contained in:
Eliot Berriot 2018-10-26 15:44:54 +02:00
parent ac4bba816d
commit bcd22eb38c
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 39 additions and 29 deletions

View file

@ -200,8 +200,8 @@ class SubsonicViewSet(viewsets.GenericViewSet):
if not upload:
return response.Response(status=404)
format = data.get('format', 'raw')
if format == 'raw':
format = data.get("format", "raw")
if format == "raw":
format = None
return music_views.handle_serve(upload=upload, user=request.user, format=format)