X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Flynda.py;h=8bb21ee1d710d8ecd2b942e29a64fc57d07fde76;hb=0eba1e178230a88d1b316f54edbb671d216c1d02;hp=109055e720a6908b748c08ddd70fd69026f192ab;hpb=e3216b82bf6ef54db63984f7fece4e95fbc3b981;p=youtube-dl 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