mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -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
|
@ -15,7 +15,7 @@ class autoProcessComics:
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
# auto-detect correct section
|
# 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:
|
if len(section) > 1:
|
||||||
Logger.error(
|
Logger.error(
|
||||||
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
||||||
|
|
|
@ -14,7 +14,7 @@ class autoProcessGames:
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
# auto-detect correct section
|
# 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:
|
if len(section) > 1:
|
||||||
Logger.error(
|
Logger.error(
|
||||||
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
||||||
|
|
|
@ -166,7 +166,7 @@ class autoProcessMovie:
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
# auto-detect correct section
|
# 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:
|
if len(section) > 1:
|
||||||
Logger.error(
|
Logger.error(
|
||||||
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
||||||
|
|
|
@ -15,7 +15,7 @@ class autoProcessMusic:
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
# auto-detect correct section
|
# 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:
|
if len(section) > 1:
|
||||||
Logger.error(
|
Logger.error(
|
||||||
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
||||||
|
|
|
@ -20,7 +20,7 @@ class autoProcessTV:
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
# auto-detect correct section
|
# 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:
|
if len(section) > 1:
|
||||||
Logger.error(
|
Logger.error(
|
||||||
"MAIN: You can't have multiple sub-sections with the same name enabled, fix your autoProcessMedia.cfg file.")
|
"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