Add Medusa fork and new param "ignore_subs"

This commit is contained in:
Fernando 2016-09-05 14:53:34 -03:00 committed by fernandog
commit 613ddb129a
4 changed files with 18 additions and 2 deletions

View file

@ -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]