don't count srt files
This commit is contained in:
parent
05b7fc1f7e
commit
9881bfa62a
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue