mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-15 01:32:53 -07:00
More bug fixes
This commit is contained in:
parent
761fc7cc04
commit
edbf805df6
3 changed files with 4 additions and 6 deletions
|
@ -450,9 +450,8 @@ else:
|
|||
for category in subsection:
|
||||
dirNames = get_dirnames(section, category)
|
||||
for dirName in dirNames:
|
||||
Logger.info("MAIN: nzbToMedia running %s:%s as a manual run...", section, subsection)
|
||||
results = process(dirName, inputName=os.path.basename(dirName), status=0, clientAgent="manual",
|
||||
inputCategory=category)
|
||||
Logger.info("MAIN: nzbToMedia running %s:%s as a manual run...", section, category)
|
||||
results = process(dirName, os.path.basename(dirName), 0, clientAgent='manual', '', inputCategory=category)
|
||||
if results != 0:
|
||||
result = results
|
||||
Logger.info("MAIN: A problem was reported when trying to manually run %s:%s.", section, subsection)
|
||||
|
|
|
@ -238,8 +238,7 @@ else:
|
|||
dirNames = get_dirnames(section, category)
|
||||
for dirName in dirNames:
|
||||
Logger.info("MAIN: nzbTo%s running %s:%s as a manual run...", section, section, subsection)
|
||||
results = autoProcessTV(dirName, inputName=os.path.basename(dirName), status=0, clientAgent="manual",
|
||||
inputCategory=category)
|
||||
results = autoProcessTV(dirName, inputName=os.path.basename(dirName), failed=0, clientAgent="manual", inputCategory=category)
|
||||
if results != 0:
|
||||
result = results
|
||||
Logger.info("MAIN: A problem was reported when trying to manually run %s:%s.", section, subsection)
|
||||
|
|
|
@ -14,7 +14,7 @@ from nzbtomedia.nzbToMediaUtil import convert_to_ascii, is_sample, flatten, getD
|
|||
Logger = logging.getLogger()
|
||||
|
||||
class autoProcessTV:
|
||||
def processEpisode(self, dirName, nzbName=None, failed=False, clientAgent = "manual", section=None, inputCategory=None):
|
||||
def processEpisode(self, dirName, nzbName=None, failed=False, clientAgent = "manual", inputCategory=None):
|
||||
if dirName is None:
|
||||
Logger.error("No directory was given!")
|
||||
return 1 # failure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue