aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2022-02-22 11:24:06 +0000
committerdirkf <fieldhouse@gmx.net>2022-03-25 14:47:26 +0000
commit49c5293014bc11ec8c009856cd63cffa6296c1e1 (patch)
tree887fb5ffc9c9c8356dc65855d5ce53c7f0b3459e /youtube_dl/downloader
parent6508688e88c83bb811653083db9351702cd39a6a (diff)
Ignore --external-downloader-args if --external-downloader was rejected
... and generate warning
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/downloader/__init__.py b/youtube_dl/downloader/__init__.py
index d8f2fa342..d701d6292 100644
--- a/youtube_dl/downloader/__init__.py
+++ b/youtube_dl/downloader/__init__.py
@@ -50,6 +50,9 @@ def _get_suitable_downloader(info_dict, params={}):
ed = get_external_downloader(external_downloader)
if ed.can_download(info_dict):
return ed
+ # Avoid using unwanted args since external_downloader was rejected
+ if params.get('external_downloader_args'):
+ params['external_downloader_args'] = None
protocol = info_dict['protocol']
if protocol.startswith('m3u8') and info_dict.get('is_live'):