mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fix bug in enabled check, changed code to return list and proper turn to string
This commit is contained in:
parent
c9898e0e87
commit
6820188605
6 changed files with 30 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue