From 1bba6262bcfe7b6fe6d2ac87d091e9334dd5a023 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Fri, 13 Sep 2013 17:17:15 +0800 Subject: [PATCH] Updated site search function, fixing associated plugin --- plugins/valuesounds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/valuesounds.py b/plugins/valuesounds.py index 572a545..4eb60ec 100644 --- a/plugins/valuesounds.py +++ b/plugins/valuesounds.py @@ -10,7 +10,7 @@ def get_sound_info(game, search): except HTTPError as e: return "Error: " + json.loads(e.read())["error"] items = [] - for item in data: + for item in data["items"]: if "music" in game: textsplit = item["text"].split('"') text = ""