From ce827a38260208a978898b41649894d1e4b85a50 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 26 Sep 2015 13:45:29 +0200 Subject: [PATCH] Fix modsearch when using spaces --- modsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modsearch.py b/modsearch.py index ffb5469..fe6a7d5 100644 --- a/modsearch.py +++ b/modsearch.py @@ -9,7 +9,7 @@ import web def mod(phenny, input): uri = "http://nimg.pf-control.de/MTstuff/modSearchAPI.php?q=" - text, sc = web.get(uri + input.group(2)) + text, sc = web.get(uri + web.urlencode(input.group(2))) text = str(text, 'utf-8') data = web.json(text) answer = ""