pass cmd as param #1712

This commit is contained in:
Clinton Hall 2020-01-27 21:54:19 +13:00 committed by GitHub
commit d960124eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,10 +271,8 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
url = None
if section == 'SickBeard':
if apikey and fork == 'SickGear':
url = '{0}{1}:{2}{3}/api/{4}/?cmd=sg.postprocess'.format(protocol, host, port, web_root, apikey)
elif apikey:
url = '{0}{1}:{2}{3}/api/{4}/?cmd=postprocess'.format(protocol, host, port, web_root, apikey)
if apikey:
url = '{0}{1}:{2}{3}/api/{4}/'.format(protocol, host, port, web_root, apikey)
elif fork == 'Stheno':
url = '{0}{1}:{2}{3}/home/postprocess/process_episode'.format(protocol, host, port, web_root)
else: