keys might be none

This commit is contained in:
j 2019-11-01 16:50:40 +01:00
parent 86cc4b3f31
commit ce8b693922
1 changed files with 1 additions and 1 deletions

View File

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