forked from 0x2620/pandora
keys might be none
This commit is contained in:
parent
86cc4b3f31
commit
ce8b693922
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ class Item(models.Model):
|
|||
if self.poster_height:
|
||||
i['posterRatio'] = self.poster_width / self.poster_height
|
||||
|
||||
if 'source' in keys:
|
||||
if keys and 'source' in keys:
|
||||
i['source'] = self.files.filter(selected=True).exclude(data='').exists()
|
||||
|
||||
streams = self.streams()
|
||||
|
|
Loading…
Reference in a new issue