aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
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)