ignore no type
This commit is contained in:
parent
ca5ee40ca9
commit
1efa46b814
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue