Only finalize an encoding when all chunks have finished

This commit is contained in:
Kyle Maas 2023-12-15 18:19:08 +00:00
parent c5047d8df8
commit 04ee928f52

View File

@ -1478,7 +1478,7 @@ def encoding_file_save(sender, instance, created, **kwargs):
break
for chunk in chunks:
if not (chunk.media_file and chunk.media_file.path):
if not (chunk.media_file and chunk.media_file.path) or chunk.status != "success":
complete = False
break