mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
fix api check
This commit is contained in:
parent
4facc36e3f
commit
f8de0c1ccf
1 changed files with 2 additions and 3 deletions
|
@ -21,9 +21,6 @@ def api_check(r, params, rem_params):
|
|||
logger.debug('Response received')
|
||||
raise
|
||||
|
||||
if isinstance(json_data, str):
|
||||
return rem_params, False
|
||||
|
||||
try:
|
||||
json_data = json_data['data']
|
||||
except KeyError:
|
||||
|
@ -31,6 +28,8 @@ def api_check(r, params, rem_params):
|
|||
logger.debug('Response received: {}'.format(json_data))
|
||||
raise
|
||||
else:
|
||||
if isinstance(json_data, str):
|
||||
return rem_params, False
|
||||
json_data = json_data.get('data', json_data)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue