fail for 0 lenght clips
This commit is contained in:
parent
120e7895b0
commit
21d3225269
1 changed files with 3 additions and 0 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue