From b7e03c0f14db6bfacfec6c0c0921deb1d8deea86 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Oct 2011 01:17:16 +0200 Subject: [PATCH] add resolution --- pandora/item/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index c145aa8ce..e21c3bb10 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -462,6 +462,7 @@ class Item(models.Model): i['parts'] = len(i['durations']) if i['parts']: i['videoRatio'] = streams[0].aspect_ratio + i['resolution'] = (streams[0].file.width, streams[0].file.height) #only needed by admins if keys and 'posters' in keys: