Browse Source

Merge pull request #142 from Cqoicebordel/Fix-Google-Image

[fix] Google image with special chars
Adam Tauber 10 years ago
parent
commit
70981f8055
1 changed files with 2 additions and 2 deletions
  1. 2 2
      searx/engines/google_images.py

+ 2 - 2
searx/engines/google_images.py

@@ -9,7 +9,7 @@
 # @stable      yes (but deprecated)
 # @parse       url, title, img_src
 
-from urllib import urlencode
+from urllib import urlencode,unquote
 from json import loads
 
 # engine dependent config
@@ -52,7 +52,7 @@ def response(resp):
         results.append({'url': href,
                         'title': title,
                         'content': '',
-                        'img_src': result['url'],
+                        'img_src': unquote(result['url']),
                         'template': 'images.html'})
 
     # return results