Renamed method

This commit is contained in:
Dimitris Zlatanidis 2023-04-26 21:11:28 +03:00
parent 392f26ca6b
commit 0d5d779722

View file

@ -33,7 +33,7 @@ class Downloader(Configs):
if self.parallel_downloads or self.option_for_parallel:
for url in self.urls:
p1 = Process(target=self.tools, args=(url,))
p1 = Process(target=self.tool, args=(url,))
process.append(p1)
p1.start()
@ -41,10 +41,10 @@ class Downloader(Configs):
proc.join()
else:
for url in self.urls:
self.tools(url)
self.tool(url)
def tools(self, url: str) -> None:
""" Downloader tools wget, curl and lftp. """
def tool(self, url: str) -> None:
""" Downloader tools wget, wget2, curl and lftp. """
command: str = ''
filename: str = url.split('/')[-1]