mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Fix extra_info
being reused across runs
58adec4677
was supposed to solve this, but ended up being an incomplete fix
Closes #727
This commit is contained in:
parent
8113999995
commit
409e18286e
1 changed files with 4 additions and 1 deletions
|
@ -1166,7 +1166,7 @@ def add_extra_info(info_dict, extra_info):
|
||||||
for key, value in extra_info.items():
|
for key, value in extra_info.items():
|
||||||
info_dict.setdefault(key, value)
|
info_dict.setdefault(key, value)
|
||||||
|
|
||||||
def extract_info(self, url, download=True, ie_key=None, extra_info={},
|
def extract_info(self, url, download=True, ie_key=None, extra_info=None,
|
||||||
process=True, force_generic_extractor=False):
|
process=True, force_generic_extractor=False):
|
||||||
"""
|
"""
|
||||||
Return a list with a dictionary for each video extracted.
|
Return a list with a dictionary for each video extracted.
|
||||||
|
@ -1183,6 +1183,9 @@ def extract_info(self, url, download=True, ie_key=None, extra_info={},
|
||||||
force_generic_extractor -- force using the generic extractor
|
force_generic_extractor -- force using the generic extractor
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if extra_info is None:
|
||||||
|
extra_info = {}
|
||||||
|
|
||||||
if not ie_key and force_generic_extractor:
|
if not ie_key and force_generic_extractor:
|
||||||
ie_key = 'Generic'
|
ie_key = 'Generic'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue