From cc4ca18d7eb196c517d3dbe83c331ab27361a053 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 3 Aug 2007 09:57:02 +0000 Subject: [PATCH] the other way --- oxdbarchive/subtitles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxdbarchive/subtitles.py b/oxdbarchive/subtitles.py index 4022064..30d6101 100644 --- a/oxdbarchive/subtitles.py +++ b/oxdbarchive/subtitles.py @@ -31,8 +31,8 @@ def srt2dict(srt, encoding = "utf-8"): subtitle = subtitle.strip().split('\n') if len(subtitle) > 2: start_stop = subtitle[1].split(' --> ') - start_stop[0] = start_stop[0].split(' ')[-1] - start_stop[1] = start_stop[1].split(' ')[-1] + start_stop[0] = start_stop[0].split(' ')[0] + start_stop[1] = start_stop[1].split(' ')[0] if start_stop[0][-4] == '.': start_stop[0][:-4] + ',' + start_stop[0][-3:] start_stop[1][:-4] + ',' + start_stop[1][-3:]