Allow extractors to designate formats/subtitles for impersonation (#13778)
Authored by: bashonly
This commit is contained in:
parent
f9dff95cb1
commit
32809eb2da
4 changed files with 54 additions and 20 deletions
|
|
@ -99,7 +99,7 @@ def _get_suitable_downloader(info_dict, protocol, params, default):
|
|||
if external_downloader is None:
|
||||
if info_dict['to_stdout'] and FFmpegFD.can_merge_formats(info_dict, params):
|
||||
return FFmpegFD
|
||||
elif external_downloader.lower() != 'native':
|
||||
elif external_downloader.lower() != 'native' and info_dict.get('impersonate') is None:
|
||||
ed = get_external_downloader(external_downloader)
|
||||
if ed.can_download(info_dict, external_downloader):
|
||||
return ed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue