From 3d100c033cac32cd0ab0421efa9d96679261f669 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 19 Jul 2017 14:49:18 +0200 Subject: [PATCH] ignore some subtitles --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 9b7c5e6e7..98f18bb25 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -307,6 +307,8 @@ class File(models.Model): else: load = ox.srt.load for s in load(self.data.path): + if s['value'].strip() == 'Subtitles downloaded from www.OpenSubtitles.org': + continue if s['in'] <= s['out'] and s['value'].strip(): key = '%s --> %s\n%s' % (s['in'], s['out'], s['value']) if key not in subtitles: