mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Merge pull request #1100 from fernandog/add_medusa
Add Medusa fork and new param "ignore_subs"
This commit is contained in:
commit
c9d71945c4
4 changed files with 18 additions and 2 deletions
|
@ -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