forked from 0x2620/pandora
dont expect video in file info
This commit is contained in:
parent
581d927a22
commit
8acfd57d10
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue