always use cmd type for api.

This commit is contained in:
Clinton Hall 2020-03-03 12:34:02 +13:00 committed by GitHub
parent f8de0c1ccf
commit c037387fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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: