diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-07 07:14:46 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-07 07:14:46 +0100 | 
| commit | 73a25b30ea1613168040f9cbbf26e37ea31d8fcc (patch) | |
| tree | 0d25f2ac123abf1b75788a0d981a0b2c317edef4 | |
| parent | ac260dd81e9e1e3409650c70cb2c4a4a12857944 (diff) | |
[lynda] Remove superfluous space
| -rw-r--r-- | youtube_dl/extractor/lynda.py | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py index eae92b955..d26e22cd8 100644 --- a/youtube_dl/extractor/lynda.py +++ b/youtube_dl/extractor/lynda.py @@ -65,8 +65,8 @@ class LyndaIE(SubtitlesInfoExtractor):              'formats': formats          } -    _TIMECODE_REGEX = r'\[(?P<timecode>\d+:\d+:\d+[\.,]\d+)\]'     -     +    _TIMECODE_REGEX = r'\[(?P<timecode>\d+:\d+:\d+[\.,]\d+)\]' +      def _fix_subtitles(self, subtitles):          fixed_subtitles = {}          for k, v in subtitles.items(): @@ -75,14 +75,14 @@ class LyndaIE(SubtitlesInfoExtractor):                  continue              srt = ''              for pos in range(0, len(subs) - 1): -                seq_current = subs[pos]                 +                seq_current = subs[pos]                  m_current = re.match(self._TIMECODE_REGEX, seq_current['Timecode'])                  if m_current is None: -                    continue                 -                seq_next = subs[pos+1] +                    continue +                seq_next = subs[pos + 1]                  m_next = re.match(self._TIMECODE_REGEX, seq_next['Timecode'])                  if m_next is None: -                    continue                 +                    continue                  appear_time = m_current.group('timecode')                  disappear_time = m_next.group('timecode')                  text = seq_current['Caption'] | 
