diff --git a/oxdbarchive/model.py b/oxdbarchive/model.py index 5a2facc..cfe4e95 100644 --- a/oxdbarchive/model.py +++ b/oxdbarchive/model.py @@ -449,8 +449,8 @@ class ArchiveFile(SQLObject): def _startPoints(self): inpoints = [] if self.srt: - d = subtitles.Subtitle(self.srt) - for s in d: + d = subtitles.Subtitle(srt=self.srt) + for s in d.values(): inpoints.append(s['in']) elif self.length: minutes = int((float(self.length) / 1000) / 60) @@ -460,8 +460,8 @@ class ArchiveFile(SQLObject): def _findSubtitleByInPoint(self, inpoint): if self.srt: - d = subtitles.Subtitle(self.srt) - for s in d: + d = subtitles.Subtitle(srt=self.srt) + for s in d.values(): if s['in'] == inpoint: return s return None