Fixed issue with enabled stataus for sub-sections not being converted to a integer.

Please note default setting is enabled = 0 so if you want to use a sub-section you need to set it to enabled = 1
This commit is contained in:
echel0n 2014-04-07 01:54:39 -07:00
parent 7d4ccf53cc
commit 761fc7cc04
5 changed files with 5 additions and 5 deletions

View file

@ -166,7 +166,7 @@ class autoProcessMovie:
return 1 # failure
# auto-detect correct section
section = [x for x in config.issubsection(inputCategory) if config()[x][inputCategory]['enabled'] == 1]
section = [x for x in config.issubsection(inputCategory) if int(config()[x][inputCategory]['enabled']) == 1]
if len(section) > 1:
Logger.error(
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")