Fix config option extract never being used

This commit is contained in:
Labrys 2016-06-05 01:40:13 -04:00
commit b4541d3236
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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