More fixes

This commit is contained in:
echel0n 2014-04-07 02:56:50 -07:00
commit 78b5c1d76f
5 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ class autoProcessComics:
return 1 # failure return 1 # failure
# auto-detect correct section # auto-detect correct section
secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1] secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1][0]
if secCount > 1: if secCount > 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.")

View file

@ -14,7 +14,7 @@ class autoProcessGames:
return 1 # failure return 1 # failure
# auto-detect correct section # auto-detect correct section
secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1] secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1][0]
if secCount > 1: if secCount > 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.")

View file

@ -166,7 +166,7 @@ class autoProcessMovie:
return 1 # failure return 1 # failure
# auto-detect correct section # auto-detect correct section
secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1] secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1][0]
if secCount > 1: if secCount > 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.")

View file

@ -15,7 +15,7 @@ class autoProcessMusic:
return 1 # failure return 1 # failure
# auto-detect correct section # auto-detect correct section
secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1] secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1][0]
if secCount > 1: if secCount > 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.")

View file

@ -20,7 +20,7 @@ class autoProcessTV:
return 1 # failure return 1 # failure
# auto-detect correct section # auto-detect correct section
secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1] secCount, section = [x for x in enumerate(config.issubsection(inputCategory)) if int(config()[x[1]][inputCategory]['enabled']) == 1][0]
if secCount > 1: if secCount > 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.")