mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
always use cmd type for api. #1723
This commit is contained in:
parent
f8de0c1ccf
commit
c037387fc3
1 changed files with 5 additions and 0 deletions
|
@ -273,6 +273,11 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
||||||
if section == 'SickBeard':
|
if section == 'SickBeard':
|
||||||
if apikey:
|
if apikey:
|
||||||
url = '{0}{1}:{2}{3}/api/{4}/'.format(protocol, host, port, web_root, 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':
|
elif fork == 'Stheno':
|
||||||
url = '{0}{1}:{2}{3}/home/postprocess/process_episode'.format(protocol, host, port, web_root)
|
url = '{0}{1}:{2}{3}/home/postprocess/process_episode'.format(protocol, host, port, web_root)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue