From 51b82ad91da6728ccd9c046afe1a98c1d6af4d71 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 16 Nov 2014 14:16:42 +0000 Subject: [PATCH] dont try to extract frames from audio files --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index c54c788e..afcef387 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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