mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 02:49:31 +00:00
[YoutubeDL] Remove force_generic_extractor arg from process_ie_result
This commit is contained in:
parent
61aa5ba36e
commit
0072afca8e
|
@ -662,7 +662,7 @@ def extract_info(self, url, download=True, ie_key=None, extra_info={},
|
||||||
}
|
}
|
||||||
self.add_default_extra_info(ie_result, ie, url)
|
self.add_default_extra_info(ie_result, ie, url)
|
||||||
if process:
|
if process:
|
||||||
return self.process_ie_result(ie_result, download, extra_info, force_generic_extractor=False)
|
return self.process_ie_result(ie_result, download, extra_info)
|
||||||
else:
|
else:
|
||||||
return ie_result
|
return ie_result
|
||||||
except ExtractorError as de: # An error we somewhat expected
|
except ExtractorError as de: # An error we somewhat expected
|
||||||
|
@ -687,7 +687,7 @@ def add_default_extra_info(self, ie_result, ie, url):
|
||||||
'extractor_key': ie.ie_key(),
|
'extractor_key': ie.ie_key(),
|
||||||
})
|
})
|
||||||
|
|
||||||
def process_ie_result(self, ie_result, download=True, extra_info={}, force_generic_extractor=False):
|
def process_ie_result(self, ie_result, download=True, extra_info={}):
|
||||||
"""
|
"""
|
||||||
Take the result of the ie(may be modified) and resolve all unresolved
|
Take the result of the ie(may be modified) and resolve all unresolved
|
||||||
references (URLs, playlist items).
|
references (URLs, playlist items).
|
||||||
|
@ -715,8 +715,7 @@ def process_ie_result(self, ie_result, download=True, extra_info={}, force_gener
|
||||||
return self.extract_info(ie_result['url'],
|
return self.extract_info(ie_result['url'],
|
||||||
download,
|
download,
|
||||||
ie_key=ie_result.get('ie_key'),
|
ie_key=ie_result.get('ie_key'),
|
||||||
extra_info=extra_info,
|
extra_info=extra_info)
|
||||||
force_generic_extractor=force_generic_extractor)
|
|
||||||
elif result_type == 'url_transparent':
|
elif result_type == 'url_transparent':
|
||||||
# Use the information from the embedding page
|
# Use the information from the embedding page
|
||||||
info = self.extract_info(
|
info = self.extract_info(
|
||||||
|
|
Loading…
Reference in a new issue