diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-27 16:52:27 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-27 16:52:27 +0530 |
commit | 7f7de7f94dfeacb0eb78cb9487dfcaf5707da381 (patch) | |
tree | 1d78400b731d299d745da1e5f25eb7e05e1cf321 /yt_dlp/downloader/external.py | |
parent | 86878b6cd9b72b219b3608ab55544d43ceddc5be (diff) | |
download | hypervideo-pre-7f7de7f94dfeacb0eb78cb9487dfcaf5707da381.tar.lz hypervideo-pre-7f7de7f94dfeacb0eb78cb9487dfcaf5707da381.tar.xz hypervideo-pre-7f7de7f94dfeacb0eb78cb9487dfcaf5707da381.zip |
Allow specifying path in `--external-downloader`
Diffstat (limited to 'yt_dlp/downloader/external.py')
-rw-r--r-- | yt_dlp/downloader/external.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |