From 8d99a8a4a30e625b0c273e2c90170b9b6b642724 Mon Sep 17 00:00:00 2001 From: MrTyton Date: Tue, 15 Aug 2017 20:29:40 -0400 Subject: [PATCH] Actually stopped it from spawning multiple threads. Updated the config template. --- config_template.ini | 3 +++ fanficdownload.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config_template.ini b/config_template.ini index 69fa1d6..897ee49 100644 --- a/config_template.ini +++ b/config_template.ini @@ -12,3 +12,6 @@ input= notification= pushbullet= pbdevice= + +[output] +live= diff --git a/fanficdownload.py b/fanficdownload.py index cd70e24..1dc67d5 100644 --- a/fanficdownload.py +++ b/fanficdownload.py @@ -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])