mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
add force option for SickRage
This commit is contained in:
parent
69be718530
commit
1dcec46770
3 changed files with 15 additions and 2 deletions
|
@ -70,6 +70,8 @@
|
|||
# Enable/Disable linking for Torrents
|
||||
Torrent_NoLink = 0
|
||||
process_method =
|
||||
# force processing of already processed content when running a manual scan.
|
||||
force = 0
|
||||
extract = 1
|
||||
nzbExtractionBy = Downloader
|
||||
# Set this to minimum required size to consider a media file valid (in MB)
|
||||
|
|
|
@ -54,8 +54,9 @@ FORK_FAILED_TORRENT = "failed-torrent"
|
|||
FORKS[FORK_DEFAULT] = {"dir": None, "method": None}
|
||||
FORKS[FORK_FAILED] = {"dirName": None, "failed": None}
|
||||
FORKS[FORK_FAILED_TORRENT] = {"dir": None, "failed": None, "process_method": None}
|
||||
SICKBEARD_FAILED = [FORK_FAILED, FORK_FAILED_TORRENT]
|
||||
SICKBEARD_TORRENT = [FORK_FAILED_TORRENT]
|
||||
FORKS[FORK_SICKRAGE] = {"dir": None, "failed": None, "process_method": None, "force": None}
|
||||
SICKBEARD_FAILED = [FORK_FAILED, FORK_FAILED_TORRENT, FORK_SICKRAGE]
|
||||
SICKBEARD_TORRENT = [FORK_FAILED_TORRENT, FORK_SICKRAGE]
|
||||
|
||||
# NZBGet Exit Codes
|
||||
NZBGET_POSTPROCESS_PARCHECK = 92
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue