projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac260dd
)
[lynda] Remove superfluous space
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 7 Jan 2014 06:14:46 +0000
(07:14 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 7 Jan 2014 06:14:46 +0000
(07:14 +0100)
youtube_dl/extractor/lynda.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lynda.py
b/youtube_dl/extractor/lynda.py
index eae92b955ed941206b85cb6f516137f4425fd25c..d26e22cd8181d559c4000fa78f4397ec4e28dbc8 100644
(file)
--- a/
youtube_dl/extractor/lynda.py
+++ b/
youtube_dl/extractor/lynda.py
@@
-65,8
+65,8
@@
class LyndaIE(SubtitlesInfoExtractor):
'formats': formats
}
'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():
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):
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:
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:
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']
appear_time = m_current.group('timecode')
disappear_time = m_next.group('timecode')
text = seq_current['Caption']