Browse Source

[fix] revert of 1x.com (no valid https certificate)

Alexandre Flament 10 years ago
parent
commit
e7fd546aae
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      searx/engines/www1x.py

+ 3
- 2
searx/engines/www1x.py View File

@@ -19,14 +19,15 @@ import re
19 19
 categories = ['images']
20 20
 paging = False
21 21
 
22
-# search-url, no HTTPS
23
-base_url = 'https://1x.com'
22
+# search-url, no HTTPS (there is a valid certificate for https://api2.1x.com/ )
23
+base_url = 'http://1x.com'
24 24
 search_url = base_url+'/backend/search.php?{query}'
25 25
 
26 26
 
27 27
 # do search-request
28 28
 def request(query, params):
29 29
     params['url'] = search_url.format(query=urlencode({'q': query}))
30
+    print params['url']
30 31
 
31 32
     return params
32 33