dont expect video in file info

This commit is contained in:
j 2014-11-29 14:40:56 +01:00
parent 581d927a22
commit 8acfd57d10

View file

@ -1098,7 +1098,7 @@ class Item(models.Model):
if stream.duration + offset < position: if stream.duration + offset < position:
offset += stream.duration offset += stream.duration
else: else:
if not stream.file.is_video or not stream.file.info['video']: if not stream.file.is_video or not stream.file.info.get('video'):
return None return None
position = position - offset position = position - offset
if not height: if not height: