mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-03-12 12:35:28 -07:00
always use cmd type for api. #1723
This commit is contained in:
parent
f8de0c1ccf
commit
c037387fc3
@ -273,6 +273,11 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
||||
if section == 'SickBeard':
|
||||
if apikey:
|
||||
url = '{0}{1}:{2}{3}/api/{4}/'.format(protocol, host, port, web_root, apikey)
|
||||
if not 'cmd' in fork_params:
|
||||
if 'SickGear' in fork:
|
||||
fork_params['cmd'] = 'sg.postprocess'
|
||||
else:
|
||||
fork_params['cmd'] = 'postprocess'
|
||||
elif fork == 'Stheno':
|
||||
url = '{0}{1}:{2}{3}/home/postprocess/process_episode'.format(protocol, host, port, web_root)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user