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