source is used in padma, use other key

This commit is contained in:
j 2023-08-17 12:14:28 +02:00
parent ce27979259
commit 61dd667a71

View file

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