ignore some subtitles

This commit is contained in:
j 2017-07-19 14:49:18 +02:00
parent fb738c25cf
commit 3d100c033c
1 changed files with 2 additions and 0 deletions

View File

@ -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: