mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05: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
@ -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
|
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
|
nzbName: The NZB name which resulted in this folder being downloaded
|
||||||
force: True to postprocess already postprocessed files
|
force: True to postprocess already postprocessed files
|
||||||
failed: Boolean for whether or not the download failed
|
failed: Boolean for whether or not the download failed
|
||||||
type: Type of postprocessing auto or manual
|
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
|
global process_result, returnStr
|
||||||
|
|
||||||
returnStr = ''
|
returnStr = ''
|
||||||
|
|
||||||
returnStr += logHelper(u"Processing folder " + dirName, logger.DEBUG)
|
returnStr += logHelper(u"Processing folder " + dirName, logger.DEBUG)
|
||||||
|
@ -1846,7 +1846,10 @@ class HomePostProcess:
|
|||||||
return _munge(t)
|
return _munge(t)
|
||||||
|
|
||||||
@cherrypy.expose
|
@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":
|
if failed == "0":
|
||||||
failed = False
|
failed = False
|
||||||
|
Loading…
Reference in New Issue
Block a user