Failed processing backwards compatibility for original param name "dirName" that has been relabled to "dir"

This commit is contained in:
echel0n 2014-03-16 15:57:38 -07:00
parent 84e53a2d10
commit a165b891e9
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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