Actually stopped it from spawning multiple threads. Updated the config template.
This commit is contained in:
parent
e4368e142c
commit
8d99a8a4a3
@ -12,3 +12,6 @@ input=
|
||||
notification=
|
||||
pushbullet=
|
||||
pbdevice=
|
||||
|
||||
[output]
|
||||
live=
|
||||
|
@ -210,7 +210,7 @@ def main(user, password, server, label, inout_file, path, live ):
|
||||
for url in urls:
|
||||
log("\t{}".format(url), 'BLUE')
|
||||
if len(urls) == 1:
|
||||
downloader([urls[0], inout_file, path, live])
|
||||
downloader([list(urls)[0], inout_file, path, True])
|
||||
else:
|
||||
p = Pool()
|
||||
p.map(downloader, [[url, inout_file, path, live] for url in urls])
|
||||
|
Loading…
Reference in New Issue
Block a user