Fixed issue with autoProcessing scripts not properly returning the correct section as it was getting a list

This commit is contained in:
echel0n 2014-04-07 02:33:16 -07:00
commit 45ab861017
5 changed files with 5 additions and 5 deletions

View file

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