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

This commit is contained in:
MrTyton 2017-08-15 20:29:40 -04:00
parent e4368e142c
commit 8d99a8a4a3
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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])