forked from 0x2620/pandora
ignore some subtitles
This commit is contained in:
parent
fb738c25cf
commit
3d100c033c
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue