diff --git a/autoProcess/autoProcessMovie.py b/autoProcess/autoProcessMovie.py index 14bd3ae3..6e5c7022 100644 --- a/autoProcess/autoProcessMovie.py +++ b/autoProcess/autoProcessMovie.py @@ -207,21 +207,21 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id if inputCategory != None and config.has_section(inputCategory): section = inputCategory - host = config.get(section., "host") - port = config.get(section., "port") - apikey = config.get(section., "apikey") - delay = float(config.get(section., "delay")) - method = config.get(section., "method") - delete_failed = int(config.get(section., "delete_failed")) - wait_for = int(config.get(section., "wait_for")) + host = config.get(section, "host") + port = config.get(section, "port") + apikey = config.get(section, "apikey") + delay = float(config.get(section, "delay")) + method = config.get(section, "method") + delete_failed = int(config.get(section, "delete_failed")) + wait_for = int(config.get(section, "wait_for")) try: - ssl = int(config.get(section., "ssl")) + ssl = int(config.get(section, "ssl")) except (ConfigParser.NoOptionError, ValueError): ssl = 0 try: - web_root = config.get(section., "web_root") + web_root = config.get(section, "web_root") except ConfigParser.NoOptionError: web_root = "" @@ -231,7 +231,7 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id transcode = 0 try: - remoteCPS = int(config.get(section., "remoteCPS")) + remoteCPS = int(config.get(section, "remoteCPS")) except (ConfigParser.NoOptionError, ValueError): remoteCPS = 0 diff --git a/autoProcess/autoProcessMusic.py b/autoProcess/autoProcessMusic.py index 1d966358..3daab4b8 100644 --- a/autoProcess/autoProcessMusic.py +++ b/autoProcess/autoProcessMusic.py @@ -30,18 +30,18 @@ def process(dirName, nzbName=None, status=0, inputCategory=None): if inputCategory != None and config.has_section(inputCategory): section = inputCategory - host = config.get(section., "host") - port = config.get(section., "port") - apikey = config.get(section., "apikey") - delay = float(config.get(section., "delay")) + host = config.get(section, "host") + port = config.get(section, "port") + apikey = config.get(section, "apikey") + delay = float(config.get(section, "delay")) try: - ssl = int(config.get(section., "ssl")) + ssl = int(config.get(section, "ssl")) except (ConfigParser.NoOptionError, ValueError): ssl = 0 try: - web_root = config.get(section., "web_root") + web_root = config.get(section, "web_root") except ConfigParser.NoOptionError: web_root = "" diff --git a/autoProcess/autoProcessTV.py b/autoProcess/autoProcessTV.py index 8c2d0ed9..cb15175b 100644 --- a/autoProcess/autoProcessTV.py +++ b/autoProcess/autoProcessTV.py @@ -59,27 +59,27 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None): section = inputCategory watch_dir = "" - host = config.get(section., "host") - port = config.get(section., "port") - username = config.get(section., "username") - password = config.get(section., "password") + host = config.get(section, "host") + port = config.get(section, "port") + username = config.get(section, "username") + password = config.get(section, "password") try: - ssl = int(config.get(section., "ssl")) + ssl = int(config.get(section, "ssl")) except (ConfigParser.NoOptionError, ValueError): ssl = 0 try: - web_root = config.get(section., "web_root") + web_root = config.get(section, "web_root") except ConfigParser.NoOptionError: web_root = "" try: - watch_dir = config.get(section., "watch_dir") + watch_dir = config.get(section, "watch_dir") except ConfigParser.NoOptionError: watch_dir = "" try: - fork = config.get(section., "fork") + fork = config.get(section, "fork") except ConfigParser.NoOptionError: fork = "default" @@ -89,11 +89,11 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None): transcode = 0 try: - delete_failed = int(config.get(section., "delete_failed")) + delete_failed = int(config.get(section, "delete_failed")) except (ConfigParser.NoOptionError, ValueError): delete_failed = 0 try: - delay = float(config.get(section., "delay")) + delay = float(config.get(section, "delay")) except (ConfigParser.NoOptionError, ValueError): delay = 0