Fixed enable/disable check.

Added few more helper functions to our config class.
This commit is contained in:
echel0n 2014-04-07 06:47:36 -07:00
commit c9898e0e87
14 changed files with 53 additions and 49 deletions

View file

@ -448,7 +448,7 @@ else:
Logger.warn("MAIN: Invalid number of arguments received from client.")
for section, subsection in subsections.items():
for category in subsection:
if int(config()[section][category]['enabled']) == 1:
if config.isenabled(section, category):
dirNames = get_dirnames(section, category)
for dirName in dirNames:
Logger.info("MAIN: nzbToMedia running %s:%s as a manual run...", section, category)