mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[downloader/external] wrap available_opt in a list
This commit is contained in:
parent
634415ca17
commit
91ee320bfa
1 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ def exe(self):
|
|||
|
||||
@classmethod
|
||||
def available(cls):
|
||||
return check_executable(cls.get_basename(), cls.available_opt)
|
||||
return check_executable(cls.get_basename(), [cls.AVAILABLE_OPT])
|
||||
|
||||
@classmethod
|
||||
def supports(cls, info_dict):
|
||||
|
@ -86,7 +86,7 @@ def _call_downloader(self, tmpfilename, info_dict):
|
|||
|
||||
|
||||
class CurlFD(ExternalFD):
|
||||
available_opt = ['-V']
|
||||
AVAILABLE_OPT = '-V'
|
||||
|
||||
def _make_cmd(self, tmpfilename, info_dict):
|
||||
cmd = [self.exe, '--location', '-o', tmpfilename]
|
||||
|
@ -101,7 +101,7 @@ def _make_cmd(self, tmpfilename, info_dict):
|
|||
|
||||
|
||||
class AxelFD(ExternalFD):
|
||||
available_opt = ['-V']
|
||||
AVAILABLE_OPT = '-V'
|
||||
|
||||
def _make_cmd(self, tmpfilename, info_dict):
|
||||
cmd = [self.exe, '-o', tmpfilename]
|
||||
|
@ -113,7 +113,7 @@ def _make_cmd(self, tmpfilename, info_dict):
|
|||
|
||||
|
||||
class WgetFD(ExternalFD):
|
||||
available_opt = ['--version']
|
||||
AVAILABLE_OPT = '--version'
|
||||
|
||||
def _make_cmd(self, tmpfilename, info_dict):
|
||||
cmd = [self.exe, '-O', tmpfilename, '-nv', '--no-cookies']
|
||||
|
@ -128,7 +128,7 @@ def _make_cmd(self, tmpfilename, info_dict):
|
|||
|
||||
|
||||
class Aria2cFD(ExternalFD):
|
||||
available_opt = ['-v']
|
||||
AVAILABLE_OPT = '-v'
|
||||
|
||||
def _make_cmd(self, tmpfilename, info_dict):
|
||||
cmd = [self.exe, '-c']
|
||||
|
|
Loading…
Reference in a new issue