Fixed a bug with in-place imported files not playing

This commit is contained in:
Eliot Berriot 2019-07-18 15:13:34 +02:00
parent 918e7beb7e
commit d808a1f1ac
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 1 additions and 1 deletions

View File

@ -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