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:
|
||||
offset += stream.duration
|
||||
else:
|
||||
if not stream.file.is_video or not stream.file.info['video']:
|
||||
return None
|
||||
position = position - offset
|
||||
if not height:
|
||||
height = stream.resolution
|
||||
|
|
Loading…
Reference in a new issue