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

View file

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