Updated for comments

This commit is contained in:
Dimitris Zlatanidis 2023-05-13 22:49:21 +03:00
parent 03872cdc91
commit 3217e5fc17

View file

@ -51,7 +51,6 @@ class Downloader(Configs):
self.tools(url)
def tools(self, url: str) -> None:
""" Downloader tools wget, wget2, curl and lftp. """
path: str = urlparse(url).path
self.filename: str = unquote(Path(path).name)
@ -84,7 +83,6 @@ class Downloader(Configs):
self.downloader_command: str = f'{self.downloader} {self.lftp_get_options} {url} -o {self.path}'
def check_if_downloaded(self, url: str) -> None:
""" Checks if the file downloaded. """
path_file: Path = Path(self.path, self.filename)
if not path_file.exists():
self.errors.raise_error_message(f"Download the '{url}'", exit_status=20)