aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-07 07:17:49 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-07 07:17:49 +0100
commit7b09a4d847fae87b1b70cd44f2d1cbe7ada35db8 (patch)
tree78f60c8c07c77eeb51eb982f4c35bdcccbda8f2f /youtube_dl
parent73a25b30ea1613168040f9cbbf26e37ea31d8fcc (diff)
[lynda] Fix download if subtitles were not requested
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/lynda.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py
index d26e22cd8..19a4b10d5 100644
--- 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)