mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Add cmd for SiCKRAGE api v1 Fixes #1900
This commit is contained in:
parent
7436ba7716
commit
c40b949eee
1 changed files with 2 additions and 0 deletions
|
@ -316,6 +316,7 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
|||
url = '{0}{1}:{2}{3}/api/v{4}/postprocess'.format(protocol, host, port, web_root, api_version)
|
||||
else:
|
||||
url = '{0}{1}:{2}{3}/api/v{4}/{5}/'.format(protocol, host, port, web_root, api_version, apikey)
|
||||
fork_params['cmd'] = 'postprocess'
|
||||
elif section == 'NzbDrone':
|
||||
url = '{0}{1}:{2}{3}/api/command'.format(protocol, host, port, web_root)
|
||||
url2 = '{0}{1}:{2}{3}/api/config/downloadClient'.format(protocol, host, port, web_root)
|
||||
|
@ -371,6 +372,7 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
|||
else:
|
||||
params = fork_params
|
||||
|
||||
logger.debug('Opening URL: {0} with params: {1}'.format(url, params), section)
|
||||
r = s.get(url, params=params, stream=True, verify=False, timeout=(30, 1800))
|
||||
elif section == 'NzbDrone':
|
||||
logger.debug('Opening URL: {0} with data: {1}'.format(url, data), section)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue