dont try to extract frames from audio files

This commit is contained in:
j 2014-11-16 14:16:42 +00:00
parent f7f1e6cd78
commit 51b82ad91d

View file

@ -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