From d808a1f1accf473f028894d7ea1c809b32c54854 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 18 Jul 2019 15:13:34 +0200 Subject: [PATCH] Fixed a bug with in-place imported files not playing --- api/funkwhale_api/music/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/funkwhale_api/music/views.py b/api/funkwhale_api/music/views.py index bc405571d..e99bd496c 100644 --- a/api/funkwhale_api/music/views.py +++ b/api/funkwhale_api/music/views.py @@ -333,7 +333,7 @@ def handle_serve(upload, user, format=None, max_bitrate=None, proxy_media=True): f = transcoded_version file_path = get_file_path(f.audio_file) mt = f.mimetype - if not proxy_media: + if not proxy_media and f.audio_file: # we simply issue a 302 redirect to the real URL response = Response(status=302) response["Location"] = f.audio_file.url