@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):
class CurlFD(ExternalFD):
- available_opt = ['-V']
+ AVAILABLE_OPT = '-V'
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '--location', '-o', tmpfilename]
class AxelFD(ExternalFD):
- available_opt = ['-V']
+ AVAILABLE_OPT = '-V'
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '-o', tmpfilename]
class WgetFD(ExternalFD):
- available_opt = ['--version']
+ AVAILABLE_OPT = '--version'
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '-O', tmpfilename, '-nv', '--no-cookies']
class Aria2cFD(ExternalFD):
- available_opt = ['-v']
+ AVAILABLE_OPT = '-v'
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '-c']