switch to new get api results
This commit is contained in:
parent
30a86de951
commit
09ee5fc417
10 changed files with 55 additions and 67 deletions
|
|
@ -121,8 +121,10 @@ class Annotation(models.Model):
|
|||
if key in j:
|
||||
_j[key] = j[key]
|
||||
j = _j
|
||||
if 'aspectRatio' in keys:
|
||||
j['aspectRatio'] = self.item.stream_aspect
|
||||
if 'videoRatio' in keys:
|
||||
streams = self.item.streams()
|
||||
if streams:
|
||||
j['videoRatio'] = streams[0].aspect_ratio
|
||||
if 'item' in keys:
|
||||
j['item'] = self.item.itemId
|
||||
return j
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue