diff --git a/core/autoProcess/autoProcessMovie.py b/core/autoProcess/autoProcessMovie.py index 2c7dce17..0264abc6 100644 --- a/core/autoProcess/autoProcessMovie.py +++ b/core/autoProcess/autoProcessMovie.py @@ -114,7 +114,7 @@ class autoProcessMovie(object): ssl = int(core.CFG[section][inputCategory].get("ssl", 0)) web_root = core.CFG[section][inputCategory].get("web_root", "") remote_path = int(core.CFG[section][inputCategory].get("remote_path", 0)) - extract = int(section[inputCategory].get("extract", 0)) + extract = int(core.CFG[section][inputCategory].get("extract", 0)) protocol = "https://" if ssl else "http://" baseURL = "{0}{1}:{2}{3}/api/{4}".format(protocol, host, port, web_root, apikey) diff --git a/core/autoProcess/autoProcessMusic.py b/core/autoProcess/autoProcessMusic.py index f4ec185b..42c23311 100644 --- a/core/autoProcess/autoProcessMusic.py +++ b/core/autoProcess/autoProcessMusic.py @@ -49,7 +49,7 @@ class autoProcessMusic(object): ssl = int(core.CFG[section][inputCategory].get("ssl", 0)) web_root = core.CFG[section][inputCategory].get("web_root", "") remote_path = int(core.CFG[section][inputCategory].get("remote_path", 0)) - extract = int(section[inputCategory].get("extract", 0)) + extract = int(core.CFG[section][inputCategory].get("extract", 0)) protocol = "https://" if ssl else "http://" url = "{0}{1}:{2}{3}/api".format(protocol, host, port, web_root) diff --git a/core/autoProcess/autoProcessTV.py b/core/autoProcess/autoProcessTV.py index 030588a9..293b0568 100644 --- a/core/autoProcess/autoProcessTV.py +++ b/core/autoProcess/autoProcessTV.py @@ -75,7 +75,7 @@ class autoProcessTV(object): wait_for = int(core.CFG[section][inputCategory].get("wait_for", 2)) force = int(core.CFG[section][inputCategory].get("force", 0)) delete_on = int(core.CFG[section][inputCategory].get("delete_on", 0)) - extract = int(section[inputCategory].get("extract", 0)) + extract = int(core.CFG[section][inputCategory].get("extract", 0)) if not os.path.isdir(dirName) and os.path.isfile(dirName): # If the input directory is a file, assume single file download and split dir/name. dirName = os.path.split(os.path.normpath(dirName))[0]