Remove our auto-dir feature as it was interfearing with nzbToMedia

This commit is contained in:
echel0n 2014-03-30 18:17:05 -07:00
parent 684f1fd671
commit 94c908b0c3
1 changed files with 9 additions and 10 deletions

View File

@ -1904,12 +1904,9 @@ class HomePostProcess:
return _munge(t)
@cherrypy.expose
def processEpisode(self, dir=None, dirName=None, nzbName=None, jobName=None, quiet=None, process_method=None,
def processEpisode(self, dir=None, nzbName=None, jobName=None, quiet=None, process_method=None,
force=None, is_priority=None, failed="0", type="auto"):
# auto-detect dirParam style
dirParam = dir if dir is not None else dirName if not None else redirect("/home/postprocess/")
if failed == "0":
failed = False
else:
@ -1925,13 +1922,15 @@ class HomePostProcess:
else:
is_priority = False
result = processTV.processDir(dirParam, nzbName, process_method=process_method, force=force,
is_priority=is_priority, failed=failed, type=type)
if quiet is not None and int(quiet) == 1:
return result
if not dir:
redirect("/home/postprocess/")
else:
result = processTV.processDir(dir, nzbName, process_method=process_method, force=force, is_priority=is_priority, failed=failed, type=type)
if quiet is not None and int(quiet) == 1:
return result
result = result.replace("\n", "<br />\n")
return _genericMessage("Postprocessing results", result)
result = result.replace("\n", "<br />\n")
return _genericMessage("Postprocessing results", result)
class NewHomeAddShows: