From 94c908b0c3cb3452c9544b2bbb3583363c1da8e8 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 30 Mar 2014 18:17:05 -0700 Subject: [PATCH] Remove our auto-dir feature as it was interfearing with nzbToMedia --- sickbeard/webserve.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index d71f914f..9cae9ff7 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -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", "
\n") - return _genericMessage("Postprocessing results", result) + result = result.replace("\n", "
\n") + return _genericMessage("Postprocessing results", result) class NewHomeAddShows: