forked from 0x2620/pandora
add resolution
This commit is contained in:
parent
5923f84738
commit
b7e03c0f14
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue