From: Philipp Hagemeister Date: Tue, 7 Jan 2014 06:17:49 +0000 (+0100) Subject: [lynda] Fix download if subtitles were not requested X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=7b09a4d847fae87b1b70cd44f2d1cbe7ada35db8;p=youtube-dl [lynda] Fix download if subtitles were not requested --- 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)