mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Renamed method
This commit is contained in:
parent
392f26ca6b
commit
0d5d779722
1 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue