source is used in padma, use other key
This commit is contained in:
parent
ce27979259
commit
61dd667a71
1 changed files with 2 additions and 2 deletions
|
@ -640,8 +640,8 @@ class Item(models.Model):
|
||||||
if self.poster_height:
|
if self.poster_height:
|
||||||
i['posterRatio'] = self.poster_width / self.poster_height
|
i['posterRatio'] = self.poster_width / self.poster_height
|
||||||
|
|
||||||
if keys and 'source' in keys:
|
if keys and 'hasSource' in keys:
|
||||||
i['source'] = self.streams().exclude(file__data='').exists()
|
i['hasSource'] = self.streams().exclude(file__data='').exists()
|
||||||
|
|
||||||
streams = self.streams()
|
streams = self.streams()
|
||||||
i['durations'] = [s.duration for s in streams]
|
i['durations'] = [s.duration for s in streams]
|
||||||
|
|
Loading…
Reference in a new issue