diff --git a/management/commands/generate_clips.py b/management/commands/generate_clips.py index 94098cc..5e6d8a0 100644 --- a/management/commands/generate_clips.py +++ b/management/commands/generate_clips.py @@ -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