aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey <Ftornik@users.noreply.github.com>2015-02-27 00:51:22 +0200
committerSergey <Ftornik@users.noreply.github.com>2015-02-27 00:51:22 +0200
commit0eba1e178230a88d1b316f54edbb671d216c1d02 (patch)
treef16b924665ed4e514b3f26a41dccc007d2fc6358 /youtube_dl
parente3216b82bf6ef54db63984f7fece4e95fbc3b981 (diff)
[lynda] Fixed subtitles broken file
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/lynda.py2
1 files changed, 1 insertions, 1 deletions
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