]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[lynda] Fixed subtitles broken file
authorSergey <Ftornik@users.noreply.github.com>
Thu, 26 Feb 2015 22:51:22 +0000 (00:51 +0200)
committerSergey <Ftornik@users.noreply.github.com>
Thu, 26 Feb 2015 22:51:22 +0000 (00:51 +0200)
youtube_dl/extractor/lynda.py

index 109055e720a6908b748c08ddd70fd69026f192ab..8bb21ee1d710d8ecd2b942e29a64fc57d07fde76 100644 (file)
@@ -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