mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[lynda] Fix download if subtitles were not requested
This commit is contained in:
parent
73a25b30ea
commit
7b09a4d847
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ def _real_extract(self, url):
|
|||
_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)
|
||||
|
|
Loading…
Reference in a new issue