mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Fixed issues in the nzbTo* scripts with manual runs not properly sending the categories to be processed.
Fixed issue in TorrentToMedia with noFlatten variable for HeadPhones. Changed name of function get_categories to get_sections in nzbToMediaUtil. Added code in get_dirnames to properly return back the directory could not find anything to process in.
This commit is contained in:
parent
2791139c6b
commit
c3410fba8f
10 changed files with 70 additions and 72 deletions
|
@ -151,7 +151,7 @@ else:
|
|||
sys.exit(-1)
|
||||
|
||||
# sickbeard category
|
||||
categories = config.get_categories(["SickBeard"])
|
||||
sections = config.get_sections(["SickBeard"])
|
||||
|
||||
WakeUp()
|
||||
|
||||
|
@ -236,13 +236,13 @@ else:
|
|||
Logger.debug("MAIN: Invalid number of arguments received from client.")
|
||||
Logger.info("MAIN: Running autoProcessTV as a manual run...")
|
||||
|
||||
for section, category in categories.items():
|
||||
for dirName in get_dirnames(section, category):
|
||||
Logger.info("MAIN: Calling " + section + ":" + category + " to post-process: %s", dirName)
|
||||
results = autoProcessTV().processEpisode(dirName, dirName, 0)
|
||||
if results != 0:
|
||||
result = 1
|
||||
Logger.info("MAIN: A problem was reported in the autoProcessTV script.")
|
||||
for section, categories in sections.items():
|
||||
for category in categories:
|
||||
dirNames = get_dirnames(section, category)
|
||||
for dirName in dirNames:
|
||||
Logger.info("MAIN: Calling " + section + ":" + category + " to post-process: %s", dirName)
|
||||
results = autoProcessTV().processEpisode(dirName, dirName, 0, inputCategory=category)
|
||||
if results != 0:result = results
|
||||
|
||||
if result == 0:
|
||||
Logger.info("MAIN: The autoProcessTV script completed successfully.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue