forked from 0x2620/pandora
ignore subtitles with in > out
This commit is contained in:
parent
ea6a79cc10
commit
ed5bc510a9
1 changed files with 5 additions and 4 deletions
|
@ -282,6 +282,7 @@ class File(models.Model):
|
||||||
srt = []
|
srt = []
|
||||||
subtitles = []
|
subtitles = []
|
||||||
for s in ox.srt.load(self.data.path):
|
for s in ox.srt.load(self.data.path):
|
||||||
|
if s['in'] <= s['out']:
|
||||||
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:
|
||||||
subtitles.append(key)
|
subtitles.append(key)
|
||||||
|
|
Loading…
Reference in a new issue