mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-25 17:55:16 +01:00
Only finalize an encoding when all chunks have finished
This commit is contained in:
parent
c5047d8df8
commit
04ee928f52
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user