mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Re-coded config class to better handle multiple subsection conditionals.
This commit is contained in:
parent
8425e0f377
commit
57019ec21b
12 changed files with 95 additions and 113 deletions
|
@ -158,7 +158,7 @@ else:
|
|||
logger.warning("Invalid number of arguments received from client.")
|
||||
for section, subsection in nzbtomedia.SUBSECTIONS['HeadPhones'].items():
|
||||
for category in subsection:
|
||||
if nzbtomedia.CFG[section].isenabled(category):
|
||||
if nzbtomedia.CFG[section][category].isenabled():
|
||||
dirNames = get_dirnames(section, category)
|
||||
for dirName in dirNames:
|
||||
logger.postprocess("nzbToHeadPhones running %s:%s as a manual run on folder %s ...", section, category, dirName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue