Fix bug in enabled check, changed code to return list and proper turn to string

This commit is contained in:
echel0n 2014-04-07 08:20:35 -07:00
commit 6820188605
6 changed files with 30 additions and 28 deletions

View file

@ -15,8 +15,8 @@ class autoProcessComics:
return 1 # failure
# auto-detect correct section
section = config.issubsection(inputCategory, checkenabled=True)
if len(section) == 0:
section = config.issubsection(inputCategory, checkenabled=True)[0]
if not section:
Logger.error(
"MAIN: We were unable to find a processor for category %s that was enabled, please check your autoProcessMedia.cfg file.", inputCategory)
return 1