ignore some subtitles

This commit is contained in:
j 2017-07-19 14:49:18 +02:00
parent fb738c25cf
commit 3d100c033c

View file

@ -307,6 +307,8 @@ class File(models.Model):
else: else:
load = ox.srt.load load = ox.srt.load
for s in load(self.data.path): 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(): if s['in'] <= s['out'] and s['value'].strip():
key = '%s --> %s\n%s' % (s['in'], s['out'], s['value']) key = '%s --> %s\n%s' % (s['in'], s['out'], s['value'])
if key not in subtitles: if key not in subtitles: