mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-04-26 00:44:50 +09:00
[InfoExtractor] Fix merging subtitles to empty target
This commit is contained in:
parent
6eb6d6dff5
commit
67dbfa65f2
@ -3295,7 +3295,11 @@ class InfoExtractor(object):
|
||||
""" Merge subtitle dictionaries, language by language. """
|
||||
|
||||
# ..., * , target=None
|
||||
target = kwargs.get('target') or dict(subtitle_dict1)
|
||||
target = kwargs.get('target')
|
||||
if target is None:
|
||||
target = dict(subtitle_dict1)
|
||||
else:
|
||||
subtitle_dicts = (subtitle_dict1,) + subtitle_dicts
|
||||
|
||||
for subtitle_dict in subtitle_dicts:
|
||||
for lang in subtitle_dict:
|
||||
|
Loading…
x
Reference in New Issue
Block a user