From 7b09a4d847fae87b1b70cd44f2d1cbe7ada35db8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 7 Jan 2014 07:17:49 +0100 Subject: [PATCH] [lynda] Fix download if subtitles were not requested --- youtube_dl/extractor/lynda.py | 3 +++ 1 file changed, 3 insertions(+) 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\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)