mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Fix Json returned from Sonarr and Lidarr (#1697)
This commit is contained in:
parent
f2c07f3c38
commit
b8784d71dd
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
res = json.loads(r.content)
|
res = r.json()
|
||||||
scan_id = int(res['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:
|
||||||
|
|
|
@ -343,7 +343,7 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
elif section == 'NzbDrone':
|
elif section == 'NzbDrone':
|
||||||
try:
|
try:
|
||||||
res = json.loads(r.content)
|
res = r.json()
|
||||||
scan_id = int(res['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)
|
||||||
started = True
|
started = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue