diff options
Diffstat (limited to 'yt_dlp')
-rw-r--r-- | yt_dlp/downloader/__init__.py | 2 | ||||
-rw-r--r-- | yt_dlp/downloader/external.py | 8 | ||||
-rw-r--r-- | yt_dlp/options.py | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/yt_dlp/downloader/__init__.py b/yt_dlp/downloader/__init__.py index a15e3fd45..c2e155c0a 100644 --- a/yt_dlp/downloader/__init__.py +++ b/yt_dlp/downloader/__init__.py @@ -53,7 +53,7 @@ def get_suitable_downloader(info_dict, params={}, default=HttpFD): external_downloader = params.get('external_downloader') if external_downloader is not None: ed = get_external_downloader(external_downloader) - if ed.can_download(info_dict): + if ed.can_download(info_dict, external_downloader): return ed if protocol.startswith('m3u8'): diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py index 5d9639076..0e2bbdb86 100644 --- a/yt_dlp/downloader/external.py +++ b/yt_dlp/downloader/external.py @@ -85,16 +85,16 @@ class ExternalFD(FileDownloader): return self.params.get('external_downloader') @classmethod - def available(cls): - return check_executable(cls.get_basename(), [cls.AVAILABLE_OPT]) + def available(cls, path=None): + return check_executable(path or cls.get_basename(), [cls.AVAILABLE_OPT]) @classmethod def supports(cls, info_dict): return info_dict['protocol'] in cls.SUPPORTED_PROTOCOLS @classmethod - def can_download(cls, info_dict): - return cls.available() and cls.supports(info_dict) + def can_download(cls, info_dict, path=None): + return cls.available(path) and cls.supports(info_dict) def _option(self, command_option, param): return cli_option(self.params, command_option, param) diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 88f74ff36..5f200fb8f 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -650,8 +650,8 @@ def parseOpts(overrideArguments=None): '--external-downloader', dest='external_downloader', metavar='NAME', help=( - 'Use the specified external downloader. ' - 'Currently supports %s' % ', '.join(list_external_downloaders()))) + 'Name or path of the external downloader to use. ' + 'Currently supports %s (Recommended: aria2c)' % ', '.join(list_external_downloaders()))) downloader.add_option( '--downloader-args', '--external-downloader-args', metavar='NAME:ARGS', dest='external_downloader_args', default={}, type='str', |