projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a25b3
)
[lynda] Fix download if subtitles were not requested
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 7 Jan 2014 06:17:49 +0000
(07:17 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 7 Jan 2014 06:17:49 +0000
(07:17 +0100)
youtube_dl/extractor/lynda.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lynda.py
b/youtube_dl/extractor/lynda.py
index d26e22cd8181d559c4000fa78f4397ec4e28dbc8..19a4b10d5fa7fd32d780cf8c04070c6247ac224a 100644
(file)
--- a/
youtube_dl/extractor/lynda.py
+++ b/
youtube_dl/extractor/lynda.py
@@
-68,6
+68,9
@@
class LyndaIE(SubtitlesInfoExtractor):
_TIMECODE_REGEX = r'\[(?P<timecode>\d+:\d+:\d+[\.,]\d+)\]'
def _fix_subtitles(self, subtitles):
+ if subtitles is None:
+ return subtitles # subtitles not requested
+
fixed_subtitles = {}
for k, v in subtitles.items():
subs = json.loads(v)