Fixed issue when transcoding from federation
This commit is contained in:
parent
9671db0229
commit
aad2a50536
|
@ -323,9 +323,7 @@ def handle_serve(upload, user, format=None, max_bitrate=None):
|
||||||
mt = f.mimetype
|
mt = f.mimetype
|
||||||
|
|
||||||
if should_transcode(f, format, max_bitrate=max_bitrate):
|
if should_transcode(f, format, max_bitrate=max_bitrate):
|
||||||
transcoded_version = upload.get_transcoded_version(
|
transcoded_version = f.get_transcoded_version(format, max_bitrate=max_bitrate)
|
||||||
format, max_bitrate=max_bitrate
|
|
||||||
)
|
|
||||||
transcoded_version.accessed_date = now
|
transcoded_version.accessed_date = now
|
||||||
transcoded_version.save(update_fields=["accessed_date"])
|
transcoded_version.save(update_fields=["accessed_date"])
|
||||||
f = transcoded_version
|
f = transcoded_version
|
||||||
|
|
Loading…
Reference in New Issue