diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index 8354c66a..fa3894dc 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -44,15 +44,16 @@ def processDir(dirName, nzbName=None, process_method=None, force=False, is_prior """ Scans through the files in dirName and processes whatever media files it finds - dirName: The folder name to look in + dirName or dir: The folder name to look in nzbName: The NZB name which resulted in this folder being downloaded force: True to postprocess already postprocessed files failed: Boolean for whether or not the download failed type: Type of postprocessing auto or manual + indexer: Indexer for show can be Tvdb or TVRage or auto to auto-discover """ global process_result, returnStr - + returnStr = '' returnStr += logHelper(u"Processing folder " + dirName, logger.DEBUG) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index eef7cc5f..f9e8729c 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -1846,7 +1846,10 @@ class HomePostProcess: return _munge(t) @cherrypy.expose - def processEpisode(self, dir=None, nzbName=None, jobName=None, quiet=None, process_method=None, force=None, is_priority=None, failed="0", type="auto", indexer="auto"): + def processEpisode(self, dir=None, dirName=None, nzbName=None, jobName=None, quiet=None, process_method=None, force=None, is_priority=None, failed="0", type="auto", indexer="auto"): + + # backwards compatibility for original param 'dirName' that has been renamed to 'dir' + if dirName and dir is None: dir = dirName if failed == "0": failed = False