From 7a8756161e8d90269231b30a2c2dfa1512871135 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 6 Mar 2012 23:04:29 +0100 Subject: [PATCH] load srt --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index b51fe51e..602293f7 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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']: