瀏覽代碼

Merge pull request #1289 from rinpatch/acgsou-http

Switch acgsou to http
Adam Tauber 6 年之前
父節點
當前提交
5897343ab2
沒有帳戶連結到提交者的電子郵件
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      searx/engines/acgsou.py
  2. 1
    1
      tests/unit/engines/test_acgsou.py

+ 1
- 1
searx/engines/acgsou.py 查看文件

@@ -19,7 +19,7 @@ categories = ['files', 'images', 'videos', 'music']
19 19
 paging = True
20 20
 
21 21
 # search-url
22
-base_url = 'https://www.acgsou.com/'
22
+base_url = 'http://www.acgsou.com/'
23 23
 search_url = base_url + 'search.php?{query}&page={offset}'
24 24
 # xpath queries
25 25
 xpath_results = '//table[contains(@class, "list_style table_fixed")]//tr[not(th)]'

+ 1
- 1
tests/unit/engines/test_acgsou.py 查看文件

@@ -71,7 +71,7 @@ class TestAcgsouEngine(SearxTestCase):
71 71
         self.assertEqual(len(results), 1)
72 72
 
73 73
         r = results[0]
74
-        self.assertEqual(r['url'], 'https://www.acgsou.com/show-torrentid.html')
74
+        self.assertEqual(r['url'], 'http://www.acgsou.com/show-torrentid.html')
75 75
         self.assertEqual(r['content'], 'Category: "testcategory".')
76 76
         self.assertEqual(r['title'], 'torrentname')
77 77
         self.assertEqual(r['filesize'], 1048576)