From aad2a50536d61c5f2780baa45d82361dd16c388e Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 7 May 2019 12:32:51 +0200 Subject: [PATCH] Fixed issue when transcoding from federation --- api/funkwhale_api/music/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/funkwhale_api/music/views.py b/api/funkwhale_api/music/views.py index 37416216b..20e173d83 100644 --- a/api/funkwhale_api/music/views.py +++ b/api/funkwhale_api/music/views.py @@ -323,9 +323,7 @@ def handle_serve(upload, user, format=None, max_bitrate=None): mt = f.mimetype if should_transcode(f, format, max_bitrate=max_bitrate): - transcoded_version = upload.get_transcoded_version( - format, max_bitrate=max_bitrate - ) + transcoded_version = f.get_transcoded_version(format, max_bitrate=max_bitrate) transcoded_version.accessed_date = now transcoded_version.save(update_fields=["accessed_date"]) f = transcoded_version