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