Switched our config class to configObj.

nzbToMedia now fully performs manual runs for all autoProcessing scripts.

autoProcessing categories are now sub-sections in the autoProcessingMedia.cfg file which allows you to have a unlimited amount of categories for your liking.

nzbToMedia supports categories for all autoProcessing scripts now.

Minor bug fixes and code cleanup performed during the re-code.

Auto-migration code will convert old-style cfg files to new-style cfg format.
This commit is contained in:
echel0n 2014-04-04 15:18:40 -07:00
commit b7fc74b3fd
22 changed files with 4473 additions and 572 deletions

View file

@ -20,21 +20,18 @@ class autoProcessGames:
status = int(status)
section = "Gamez"
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")
host = config()[section][inputCategory]["host"]
port = config()[section][inputCategory]["port"]
apikey = config()[section][inputCategory]["apikey"]
try:
ssl = int(config().get(section, "ssl"))
except (config.NoOptionError, ValueError):
ssl = int(config()[section][inputCategory]["ssl"])
except:
ssl = 0
try:
web_root = config().get(section, "web_root")
except config.NoOptionError:
web_root = config()[section][inputCategory]["web_root"]
except:
web_root = ""
if ssl: