mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
parent
0d7c59f1f0
commit
d95e4e56c8
1 changed files with 1 additions and 2 deletions
|
@ -252,8 +252,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
elif section == 'Radarr':
|
elif section == 'Radarr':
|
||||||
logger.postprocess('Radarr response: {0}'.format(result['state']))
|
logger.postprocess('Radarr response: {0}'.format(result['state']))
|
||||||
try:
|
try:
|
||||||
res = json.loads(r.content)
|
scan_id = int(result['id'])
|
||||||
scan_id = int(res['id'])
|
|
||||||
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning('No scan id was returned due to: {0}'.format(e), section)
|
logger.warning('No scan id was returned due to: {0}'.format(e), section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue