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:
offset += stream.duration
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
position = position - offset
if not height: