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['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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue