From cf1aef1611acb0e029bfa7cdb5536cb87c1cdf15 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 16 Aug 2008 23:04:52 +0200 Subject: [PATCH] fix subtitles --- oxdbarchive/model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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