From: Sergey Date: Thu, 26 Feb 2015 22:51:22 +0000 (+0200) Subject: [lynda] Fixed subtitles broken file X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0eba1e178230a88d1b316f54edbb671d216c1d02;p=youtube-dl [lynda] Fixed subtitles broken file --- diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py index 109055e72..8bb21ee1d 100644 --- a/youtube_dl/extractor/lynda.py +++ b/youtube_dl/extractor/lynda.py @@ -152,7 +152,7 @@ class LyndaIE(InfoExtractor): continue appear_time = m_current.group('timecode') disappear_time = m_next.group('timecode') - text = seq_current['Caption'] + text = seq_current['Caption'].strip() srt += '%s\r\n%s --> %s\r\n%s' % (str(pos), appear_time, disappear_time, text) if srt: return srt