mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Failed processing backwards compatibility for original param name "dirName" that has been relabled to "dir"
This commit is contained in:
parent
84e53a2d10
commit
a165b891e9
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue