don't count srt files

This commit is contained in:
j 2019-11-02 15:55:02 +01:00
parent 05b7fc1f7e
commit 9881bfa62a

View file

@ -640,7 +640,7 @@ class Item(models.Model):
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 'source' in keys:
i['source'] = self.files.filter(selected=True).exclude(data='').exists() i['source'] = 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]