add force option for SickRage

This commit is contained in:
clinton-hall 2014-07-11 16:02:14 +09:30
commit 1dcec46770
3 changed files with 15 additions and 2 deletions

View file

@ -75,6 +75,10 @@ class autoProcessTV:
wait_for = int(nzbtomedia.CFG[section][inputCategory]["wait_for"])
except:
wait_for = 2
try:
force = int(nzbtomedia.CFG[section][inputCategory]["force"])
except:
force = 0
if not os.path.isdir(dirName) and os.path.isfile(dirName): # If the input directory is a file, assume single file download and split dir/name.
dirName = os.path.split(os.path.normpath(dirName))[0]
@ -169,6 +173,12 @@ class autoProcessTV:
else:
del fork_params[param]
if param == "force":
if force:
fork_params[param] = force
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]