From 27e9bc62fb399ce141c681a5c6424ed01a2eb783 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 May 2015 14:25:58 +0530 Subject: [PATCH] typo --- 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 299a4698..c2e69bef 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -622,7 +622,7 @@ class Item(models.Model): ).aggregate(Sum('duration'))['duration__sum'] videos = self.files.filter(selected=True, is_video=True) if i['duration'] and videos.count(): - i['resolution'] = (videos[0].width, streams[0].height) + i['resolution'] = (videos[0].width, videos[0].height) if i['resolution'][1] != 0: i['videoRatio'] = i['resolution'][0] / i['resolution'][1] else: