Added lftp

This commit is contained in:
Dimitris Zlatanidis 2023-03-02 00:07:42 +02:00
parent 63c05c86d1
commit 7d0f2364a0

View file

@ -47,14 +47,15 @@ class FormConfigs(Configs):
os.system('clear')
if code == 'help':
self.help()
check: bool = self.check_configs(configs, tags)
if code == 'ok' and check:
self.write_file(configs, tags)
elif not check:
self.edit()
elif code == 'help':
self.help()
def help(self) -> None:
""" Load the configuration file on a text box. """
@ -71,7 +72,7 @@ class FormConfigs(Configs):
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'true' or 'false'\n", height=7, width=60)
return False
if key in ['DOWNLOADER'] and value not in ['wget', 'curl']:
if key in ['DOWNLOADER'] and value not in ['wget', 'curl', 'lftp']:
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'wget' or 'curl'\n", height=7, width=60)
return False