fail for 0 lenght clips

This commit is contained in:
j 2023-10-29 19:57:39 +01:00
parent 120e7895b0
commit 21d3225269

View file

@ -52,6 +52,9 @@ class Command(BaseCommand):
clip[type_] = target
durations.append(e.files.filter(selected=True)[0].duration)
clip["duration"] = min(durations)
if not clip["duration"]:
print('!!', durations, clip)
continue
clip['tags'] = i.data.get('tags', [])
clip['editingtags'] = i.data.get('editingtags', [])
name = os.path.basename(clip['original'])