mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fixes typo for delete_failed option
This commit is contained in:
parent
f65d60ab7d
commit
52b41aa5de
4 changed files with 6 additions and 11 deletions
|
@ -39,8 +39,7 @@ class autoProcessComics:
|
||||||
params = {}
|
params = {}
|
||||||
params['nzb_folder'] = dirName
|
params['nzb_folder'] = dirName
|
||||||
if remote_path:
|
if remote_path:
|
||||||
dirName_new = joinPath(remote_path, os.path.basename(dirName)).replace("\\", "/")
|
params['nzb_folder'] = joinPath(remote_path, os.path.basename(dirName))
|
||||||
params['nzb_folder'] = dirName_new
|
|
||||||
|
|
||||||
if nzbName != None:
|
if nzbName != None:
|
||||||
params['nzb_name'] = nzbName
|
params['nzb_name'] = nzbName
|
||||||
|
|
|
@ -169,8 +169,7 @@ class autoProcessMovie:
|
||||||
|
|
||||||
params['media_folder'] = dirName
|
params['media_folder'] = dirName
|
||||||
if remote_path:
|
if remote_path:
|
||||||
dirName_new = joinPath(remote_path, os.path.basename(dirName)).replace("\\", "/")
|
params['media_folder'] = joinPath(remote_path, os.path.basename(dirName))
|
||||||
params['media_folder'] = dirName_new
|
|
||||||
|
|
||||||
url = "%s%s" % (baseURL, command)
|
url = "%s%s" % (baseURL, command)
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,7 @@ class autoProcessMusic:
|
||||||
|
|
||||||
params['dir'] = os.path.dirname(dirName)
|
params['dir'] = os.path.dirname(dirName)
|
||||||
if remote_path:
|
if remote_path:
|
||||||
dirName_new = joinPath(remote_path, os.path.basename(os.path.dirname(dirName))).replace("\\", "/")
|
params['dir'] = joinPath(remote_path, os.path.basename(os.path.dirname(dirName)))
|
||||||
params['dir'] = dirName_new
|
|
||||||
|
|
||||||
|
|
||||||
release_status = self.get_status(url, apikey, dirName)
|
release_status = self.get_status(url, apikey, dirName)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class autoProcessTV:
|
||||||
except:
|
except:
|
||||||
web_root = ""
|
web_root = ""
|
||||||
try:
|
try:
|
||||||
delete_failed = int(nzbtomedia.CFG[section][inputCategory]["rmDir_failed"])
|
delete_failed = int(nzbtomedia.CFG[section][inputCategory]["delete_failed"])
|
||||||
except:
|
except:
|
||||||
delete_failed = 0
|
delete_failed = 0
|
||||||
try:
|
try:
|
||||||
|
@ -108,8 +108,7 @@ class autoProcessTV:
|
||||||
if param in ["dirName", "dir"]:
|
if param in ["dirName", "dir"]:
|
||||||
fork_params[param] = dirName
|
fork_params[param] = dirName
|
||||||
if remote_path:
|
if remote_path:
|
||||||
dirName_new = joinPath(remote_path, os.path.basename(dirName)).replace("\\", "/")
|
fork_params[param] = joinPath(remote_path, os.path.basename(dirName))
|
||||||
fork_params[param] = dirName_new
|
|
||||||
|
|
||||||
if param == "process_method":
|
if param == "process_method":
|
||||||
if process_method:
|
if process_method:
|
||||||
|
@ -117,7 +116,7 @@ class autoProcessTV:
|
||||||
else:
|
else:
|
||||||
del fork_params[param]
|
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]
|
[fork_params.pop(k) for k,v in fork_params.items() if v is None]
|
||||||
|
|
||||||
if status == 0:
|
if status == 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue