Fixed issue when transcoding from federation

This commit is contained in:
Eliot Berriot 2019-05-07 12:32:51 +02:00
parent 9671db0229
commit aad2a50536
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 1 additions and 3 deletions

View File

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