forked from 0x2620/pandora
dont try to extract frames from audio files
This commit is contained in:
parent
f7f1e6cd78
commit
51b82ad91d
1 changed files with 2 additions and 0 deletions
|
@ -1097,6 +1097,8 @@ 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']:
|
||||||
|
return None
|
||||||
position = position - offset
|
position = position - offset
|
||||||
if not height:
|
if not height:
|
||||||
height = stream.resolution
|
height = stream.resolution
|
||||||
|
|
Loading…
Reference in a new issue