ignore no type

This commit is contained in:
j 2023-11-08 09:08:38 +01:00
parent ca5ee40ca9
commit 1efa46b814

View file

@ -38,7 +38,8 @@ class Command(BaseCommand):
durations = []
for e in item.models.Item.objects.filter(data__title=i.data['title']):
if 'type' not in e.data:
print("ignoring invalid video", e)
print("ignoring invalid video %s (no type)" % e)
continue
if not e.files.filter(selected=True).exists():
continue
source = e.files.filter(selected=True)[0].data.path