add "delete_on" parameter for SickRage. Fixes #814

This commit is contained in:
clinton-hall 2015-08-23 08:17:09 +09:30
parent 016ef3e80c
commit 22bb2b64b1
3 changed files with 14 additions and 2 deletions

View file

@ -104,6 +104,10 @@ class autoProcessTV:
force = int(core.CFG[section][inputCategory]["force"])
except:
force = 0
try:
delete_on = int(core.CFG[section][inputCategory]["delete_on"])
except:
delete_on = 0
try:
extract = int(section[inputCategory]["extract"])
except:
@ -211,6 +215,12 @@ class autoProcessTV:
else:
del fork_params[param]
if param == "delete_on":
if delete_on:
fork_params[param] = delete_on
else:
del fork_params[param]
# 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]