mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Keep 'cmd' param #1738
This commit is contained in:
parent
ebeb17cf46
commit
2bdf95b551
1 changed files with 4 additions and 0 deletions
|
@ -139,6 +139,8 @@ def auto_fork(section, input_category):
|
||||||
if apikey:
|
if apikey:
|
||||||
rem_params, found = api_check(r, params, rem_params)
|
rem_params, found = api_check(r, params, rem_params)
|
||||||
if found:
|
if found:
|
||||||
|
if 'cmd' in rem_params:
|
||||||
|
rem_params.pop('cmd') # Don't remove this param.
|
||||||
params['cmd'] = 'sg.postprocess'
|
params['cmd'] = 'sg.postprocess'
|
||||||
else: # try different api set for non-SickGear forks.
|
else: # try different api set for non-SickGear forks.
|
||||||
url = '{protocol}{host}:{port}{root}/api/{apikey}/?cmd=help&subject=postprocess'.format(
|
url = '{protocol}{host}:{port}{root}/api/{apikey}/?cmd=help&subject=postprocess'.format(
|
||||||
|
@ -150,6 +152,8 @@ 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)
|
||||||
|
if 'cmd' in rem_params:
|
||||||
|
rem_params.pop('cmd') # Don't remove this param.
|
||||||
params['cmd'] = 'postprocess'
|
params['cmd'] = 'postprocess'
|
||||||
else:
|
else:
|
||||||
# Find excess parameters
|
# Find excess parameters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue