switch to new get api results

This commit is contained in:
rlx 2011-08-19 14:43:05 +00:00
commit 09ee5fc417
10 changed files with 55 additions and 67 deletions

View file

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