mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
pass cmd as parameter #1712
This commit is contained in:
parent
08bf2ccd8a
commit
9673e90bd3
1 changed files with 4 additions and 1 deletions
|
@ -131,7 +131,9 @@ def auto_fork(section, input_category):
|
||||||
if r and r.ok:
|
if r and r.ok:
|
||||||
if apikey:
|
if apikey:
|
||||||
rem_params, found = api_check(r, params, rem_params)
|
rem_params, found = api_check(r, params, rem_params)
|
||||||
if not found: # try different api set for SickGear.
|
if found:
|
||||||
|
params['cmd'] = 'postprocess'
|
||||||
|
else: # try different api set for SickGear.
|
||||||
url = '{protocol}{host}:{port}{root}/api/{apikey}/?cmd=sg.postprocess&help=1'.format(
|
url = '{protocol}{host}:{port}{root}/api/{apikey}/?cmd=sg.postprocess&help=1'.format(
|
||||||
protocol=protocol, host=host, port=port, root=web_root, apikey=apikey,
|
protocol=protocol, host=host, port=port, root=web_root, apikey=apikey,
|
||||||
)
|
)
|
||||||
|
@ -141,6 +143,7 @@ def auto_fork(section, input_category):
|
||||||
logger.info('Could not connect to {section}:{category} to perform auto-fork detection!'.format
|
logger.info('Could not connect to {section}:{category} to perform auto-fork detection!'.format
|
||||||
(section=section, category=input_category))
|
(section=section, category=input_category))
|
||||||
rem_params, found = api_check(r, params, rem_params)
|
rem_params, found = api_check(r, params, rem_params)
|
||||||
|
params['cmd'] = 'sg.postprocess'
|
||||||
else:
|
else:
|
||||||
# Find excess parameters
|
# Find excess parameters
|
||||||
rem_params.extend(
|
rem_params.extend(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue