From 9881bfa62a6fd9f14816de33e578554750516494 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 2 Nov 2019 15:55:02 +0100 Subject: [PATCH] don't count srt files --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index a5bf7064..f625fb80 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -640,7 +640,7 @@ class Item(models.Model): i['posterRatio'] = self.poster_width / self.poster_height 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() i['durations'] = [s.duration for s in streams]