Pārlūkot izejas kodu

ddg encoding of URLs appears to be broken, revealed when trying to pickled the results to disk

Emmanuel Benazera 9 gadus atpakaļ
vecāks
revīzija
78a69e4c98
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      searx/engines/duckduckgo.py

+ 1
- 1
searx/engines/duckduckgo.py Parādīt failu

@@ -72,7 +72,7 @@ def response(resp):
72 72
         # append result
73 73
         results.append({'title': title,
74 74
                         'content': content,
75
-                        'url': res_url})
75
+                        'url': res_url.encode('utf8')})
76 76
 
77 77
     # return results
78 78
     return results