This commit is contained in:
j 2012-03-06 23:04:29 +01:00
parent 82cd45aeb1
commit 7a8756161e

View file

@ -172,7 +172,7 @@ class File(models.Model):
return None return None
def srt(self, offset=0): def srt(self, offset=0):
srt = ox.load_srt(self.data.path) srt = ox.srt.load(self.data.path)
#subtitles should not overlap #subtitles should not overlap
for i in range(1, len(srt)): for i in range(1, len(srt)):
if srt[i-1]['out'] > srt[i]['in']: if srt[i-1]['out'] > srt[i]['in']: