mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fixed issue with autoProcessing scripts not properly returning the correct section as it was getting a list
This commit is contained in:
parent
5c264f0405
commit
45ab861017
5 changed files with 5 additions and 5 deletions
|
@ -166,7 +166,7 @@ class autoProcessMovie:
|
|||
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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue