Merge pull request #1100 from fernandog/add_medusa

Add Medusa fork and new param "ignore_subs"
This commit is contained in:
Clinton Hall 2016-09-21 22:12:25 +09:30 committed by GitHub
commit c9d71945c4
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]