From 8acfd57d1088a040d6e676db38e0a93b81088902 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Nov 2014 14:40:56 +0100 Subject: [PATCH] dont expect video in file info --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: