diff --git a/oml/metaremote.py b/oml/metaremote.py index e511e8f..b0fdfce 100644 --- a/oml/metaremote.py +++ b/oml/metaremote.py @@ -17,7 +17,7 @@ def request(action, data): }) url = 'http://meta.openmedialibrary.com/api/' try: - return json.loads(read_url(url, data, timeout=60))['data'] + return json.loads(read_url(url, data, timeout=60).decode('utf-8'))['data'] except: return {}