mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Add Medusa fork and new param "ignore_subs"
This commit is contained in:
parent
5a7d525f6c
commit
613ddb129a
4 changed files with 18 additions and 2 deletions
|
@ -63,15 +63,17 @@ FORK_FAILED = "failed"
|
|||
FORK_FAILED_TORRENT = "failed-torrent"
|
||||
FORK_SICKRAGETV = "sickragetv"
|
||||
FORK_SICKRAGE = "sickrage"
|
||||
FORK_MEDUSA = "medusa"
|
||||
FORK_SICKGEAR = "sickgear"
|
||||
FORKS[FORK_DEFAULT] = {"dir": None}
|
||||
FORKS[FORK_FAILED] = {"dirName": None, "failed": None}
|
||||
FORKS[FORK_FAILED_TORRENT] = {"dir": None, "failed": None, "process_method": None}
|
||||
FORKS[FORK_SICKRAGETV] = {"proc_dir": None, "failed": None, "process_method": None, "force": None, "delete_on": None}
|
||||
FORKS[FORK_SICKRAGE] = {"proc_dir": None, "failed": None, "process_method": None, "force": None, "delete_on": None}
|
||||
FORKS[FORK_MEDUSA] = {"proc_dir": None, "failed": None, "process_method": None, "force": None, "delete_on": None, "ignore_subs":None}
|
||||
FORKS[FORK_SICKGEAR] = {"dir": None, "failed": None, "process_method": None, "force": None}
|
||||
ALL_FORKS = {"dir": None, "dirName": None, "proc_dir": None, "failed": None, "process_method": None, "force": None,
|
||||
"delete_on": None}
|
||||
"delete_on": None, "ignore_subs": None}
|
||||
|
||||
# NZBGet Exit Codes
|
||||
NZBGET_POSTPROCESS_PARCHECK = 92
|
||||
|
|
|
@ -78,6 +78,7 @@ class autoProcessTV(object):
|
|||
wait_for = int(cfg.get("wait_for", 2))
|
||||
force = int(cfg.get("force", 0))
|
||||
delete_on = int(cfg.get("delete_on", 0))
|
||||
ignore_subs = int(cfg.get("ignore_subs", 0))
|
||||
extract = int(cfg.get("extract", 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.
|
||||
|
@ -198,6 +199,12 @@ class autoProcessTV(object):
|
|||
else:
|
||||
del fork_params[param]
|
||||
|
||||
if param == "ignore_subs":
|
||||
if ignore_subs:
|
||||
fork_params[param] = ignore_subs
|
||||
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