mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +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:
|
if self.parallel_downloads or self.option_for_parallel:
|
||||||
for url in self.urls:
|
for url in self.urls:
|
||||||
p1 = Process(target=self.tools, args=(url,))
|
p1 = Process(target=self.tool, args=(url,))
|
||||||
process.append(p1)
|
process.append(p1)
|
||||||
p1.start()
|
p1.start()
|
||||||
|
|
||||||
|
@ -41,10 +41,10 @@ class Downloader(Configs):
|
||||||
proc.join()
|
proc.join()
|
||||||
else:
|
else:
|
||||||
for url in self.urls:
|
for url in self.urls:
|
||||||
self.tools(url)
|
self.tool(url)
|
||||||
|
|
||||||
def tools(self, url: str) -> None:
|
def tool(self, url: str) -> None:
|
||||||
""" Downloader tools wget, curl and lftp. """
|
""" Downloader tools wget, wget2, curl and lftp. """
|
||||||
command: str = ''
|
command: str = ''
|
||||||
filename: str = url.split('/')[-1]
|
filename: str = url.split('/')[-1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue