From 599f80ec5f7c78beeee7017f6c2677e6814d66c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20Ho=C3=A5s?= Date: Wed, 25 Sep 2013 10:18:10 +0200 Subject: [PATCH] Google: Filter out [, before attempting to interpret Googles response as json. --- plugins/Google/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index 348cfbc87..cfc34b077 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -267,6 +267,8 @@ class Google(callbacks.PluginRegexp): while ',,' in result: result = result.replace(',,', ',null,') + while '[,' in result: + result = result.replace('[,', '[') data = json.loads(result) try: