add resolution

This commit is contained in:
j 2011-10-29 01:17:16 +02:00
parent 5923f84738
commit b7e03c0f14

View File

@ -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: