forked from 0x2620/pandora
load srt
This commit is contained in:
parent
82cd45aeb1
commit
7a8756161e
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class File(models.Model):
|
|||
return None
|
||||
|
||||
def srt(self, offset=0):
|
||||
srt = ox.load_srt(self.data.path)
|
||||
srt = ox.srt.load(self.data.path)
|
||||
#subtitles should not overlap
|
||||
for i in range(1, len(srt)):
|
||||
if srt[i-1]['out'] > srt[i]['in']:
|
||||
|
|
Loading…
Reference in a new issue