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 View File

@@ -9,7 +9,7 @@
9 9
 # @stable      yes (but deprecated)
10 10
 # @parse       url, title, img_src
11 11
 
12
-from urllib import urlencode
12
+from urllib import urlencode,unquote
13 13
 from json import loads
14 14
 
15 15
 # engine dependent config
@@ -52,7 +52,7 @@ def response(resp):
52 52
         results.append({'url': href,
53 53
                         'title': title,
54 54
                         'content': '',
55
-                        'img_src': result['url'],
55
+                        'img_src': unquote(result['url']),
56 56
                         'template': 'images.html'})
57 57
 
58 58
     # return results