mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -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:
|
||||
res = json.loads(r.content)
|
||||
res = r.json()
|
||||
scan_id = int(res['id'])
|
||||
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
||||
except Exception as e:
|
||||
|
|
|
@ -343,7 +343,7 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
|
|||
time.sleep(60)
|
||||
elif section == 'NzbDrone':
|
||||
try:
|
||||
res = json.loads(r.content)
|
||||
res = r.json()
|
||||
scan_id = int(res['id'])
|
||||
logger.debug('Scan started with id: {0}'.format(scan_id), section)
|
||||
started = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue