mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
parent
58a6b2022b
commit
001f754cd3
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ def api_check(r, params, rem_params):
|
||||||
logger.debug('Response received: {}'.format(json_data))
|
logger.debug('Response received: {}'.format(json_data))
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
if isinstance(json_data, str):
|
if six.PY3:
|
||||||
|
str_type = (str)
|
||||||
|
else:
|
||||||
|
str_type = (str, unicode)
|
||||||
|
if isinstance(json_data, str_type):
|
||||||
return rem_params, False
|
return rem_params, False
|
||||||
json_data = json_data.get('data', json_data)
|
json_data = json_data.get('data', json_data)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue