소스 검색

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

[fix] Google image with special chars
Adam Tauber 10 년 전
부모
커밋
70981f8055
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      searx/engines/google_images.py

+ 2
- 2
searx/engines/google_images.py 파일 보기

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