diff --git a/pandora/item/models.py b/pandora/item/models.py index c8c599bc..0be4bfa7 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1098,7 +1098,7 @@ 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']: + if not stream.file.is_video or not stream.file.info.get('video'): return None position = position - offset if not height: