Fixed a bug with in-place imported files not playing

environments/review-front-arti-0habim/deployments/2230
Eliot Berriot 2019-07-18 15:13:34 +02:00
rodzic 918e7beb7e
commit d808a1f1ac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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