Actually stopped it from spawning multiple threads. Updated the config template.

master
MrTyton 7 years ago
parent e4368e142c
commit 8d99a8a4a3

@ -12,3 +12,6 @@ input=
notification= notification=
pushbullet= pushbullet=
pbdevice= pbdevice=
[output]
live=

@ -210,7 +210,7 @@ def main(user, password, server, label, inout_file, path, live ):
for url in urls: for url in urls:
log("\t{}".format(url), 'BLUE') log("\t{}".format(url), 'BLUE')
if len(urls) == 1: if len(urls) == 1:
downloader([urls[0], inout_file, path, live]) downloader([list(urls)[0], inout_file, path, True])
else: else:
p = Pool() p = Pool()
p.map(downloader, [[url, inout_file, path, live] for url in urls]) p.map(downloader, [[url, inout_file, path, live] for url in urls])

Loading…
Cancel
Save