From 3b89ce9bfa07250da9be005263d6588c13a5ccb0 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 3 May 2018 08:34:21 +0300 Subject: [PATCH 1/2] Switch acgsou to http --- searx/engines/acgsou.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]' From b7eb05dac68f0488223fd9127e0f5ce4c841e95f Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 3 May 2018 15:20:48 +0300 Subject: [PATCH 2/2] Fix unit test url --- tests/unit/engines/test_acgsou.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)