diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2018-05-03 14:47:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-03 14:47:13 +0200 |
| commit | 5897343ab281a129d723e57c5e40531b4dab8b8b (patch) | |
| tree | 2f532e6b55eeb886e29a305e085e1caaf4685186 | |
| parent | 1a1f9852f11429d3f8f47d5c0c8ef5176f202c27 (diff) | |
| parent | b7eb05dac68f0488223fd9127e0f5ce4c841e95f (diff) | |
Merge pull request #1289 from rinpatch/acgsou-http
Switch acgsou to http
| -rw-r--r-- | searx/engines/acgsou.py | 2 | ||||
| -rw-r--r-- | tests/unit/engines/test_acgsou.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/acgsou.py b/searx/engines/acgsou.py index 9cedeeecf..c82379c27 100644 --- a/searx/engines/acgsou.py +++ b/searx/engines/acgsou.py @@ -19,7 +19,7 @@ categories = ['files', 'images', 'videos', 'music'] paging = True # search-url -base_url = 'https://www.acgsou.com/' +base_url = 'http://www.acgsou.com/' search_url = base_url + 'search.php?{query}&page={offset}' # xpath queries xpath_results = '//table[contains(@class, "list_style table_fixed")]//tr[not(th)]' diff --git a/tests/unit/engines/test_acgsou.py b/tests/unit/engines/test_acgsou.py index c3ea48057..f97749cc1 100644 --- a/tests/unit/engines/test_acgsou.py +++ b/tests/unit/engines/test_acgsou.py @@ -71,7 +71,7 @@ class TestAcgsouEngine(SearxTestCase): self.assertEqual(len(results), 1) r = results[0] - self.assertEqual(r['url'], 'https://www.acgsou.com/show-torrentid.html') + self.assertEqual(r['url'], 'http://www.acgsou.com/show-torrentid.html') self.assertEqual(r['content'], 'Category: "testcategory".') self.assertEqual(r['title'], 'torrentname') self.assertEqual(r['filesize'], 1048576) |