Fixes typo for delete_failed option

This commit is contained in:
echel0n 2014-04-22 02:18:01 -07:00
commit 52b41aa5de
4 changed files with 6 additions and 11 deletions

View file

@ -39,8 +39,7 @@ class autoProcessComics:
params = {}
params['nzb_folder'] = dirName
if remote_path:
dirName_new = joinPath(remote_path, os.path.basename(dirName)).replace("\\", "/")
params['nzb_folder'] = dirName_new
params['nzb_folder'] = joinPath(remote_path, os.path.basename(dirName))
if nzbName != None:
params['nzb_name'] = nzbName

View file

@ -169,8 +169,7 @@ class autoProcessMovie:
params['media_folder'] = dirName
if remote_path:
dirName_new = joinPath(remote_path, os.path.basename(dirName)).replace("\\", "/")
params['media_folder'] = dirName_new
params['media_folder'] = joinPath(remote_path, os.path.basename(dirName))
url = "%s%s" % (baseURL, command)

View file

@ -76,9 +76,7 @@ class autoProcessMusic:
params['dir'] = os.path.dirname(dirName)
if remote_path:
dirName_new = joinPath(remote_path, os.path.basename(os.path.dirname(dirName))).replace("\\", "/")
params['dir'] = dirName_new
params['dir'] = joinPath(remote_path, os.path.basename(os.path.dirname(dirName)))
release_status = self.get_status(url, apikey, dirName)

View file

@ -45,7 +45,7 @@ class autoProcessTV:
except:
web_root = ""
try:
delete_failed = int(nzbtomedia.CFG[section][inputCategory]["rmDir_failed"])
delete_failed = int(nzbtomedia.CFG[section][inputCategory]["delete_failed"])
except:
delete_failed = 0
try:
@ -108,8 +108,7 @@ class autoProcessTV:
if param in ["dirName", "dir"]:
fork_params[param] = dirName
if remote_path:
dirName_new = joinPath(remote_path, os.path.basename(dirName)).replace("\\", "/")
fork_params[param] = dirName_new
fork_params[param] = joinPath(remote_path, os.path.basename(dirName))
if param == "process_method":
if process_method:
@ -117,7 +116,7 @@ class autoProcessTV:
else:
del fork_params[param]
# rmDir any unused params so we don't pass them to SB by mistake
# delete any unused params so we don't pass them to SB by mistake
[fork_params.pop(k) for k,v in fork_params.items() if v is None]
if status == 0: