1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 23:32:52 +08:00

[lynda] Fix download if subtitles were not requested

This commit is contained in:
Philipp Hagemeister 2014-01-07 07:17:49 +01:00
parent 73a25b30ea
commit 7b09a4d847

View File

@ -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)