From afb025c154f781f283319cd4e1aa08613f00609b Mon Sep 17 00:00:00 2001 From: j Date: Sat, 4 Oct 2014 21:05:56 +0200 Subject: [PATCH] decode bytes --- oml/metaremote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {}