mirror of
https://github.com/searxng/searxng.git
synced 2024-11-05 12:50:11 +01:00
Merge pull request #1289 from rinpatch/acgsou-http
Switch acgsou to http
This commit is contained in:
commit
5897343ab2
@ -19,7 +19,7 @@ categories = ['files', 'images', 'videos', 'music']
|
|||||||
paging = True
|
paging = True
|
||||||
|
|
||||||
# search-url
|
# search-url
|
||||||
base_url = 'https://www.acgsou.com/'
|
base_url = 'http://www.acgsou.com/'
|
||||||
search_url = base_url + 'search.php?{query}&page={offset}'
|
search_url = base_url + 'search.php?{query}&page={offset}'
|
||||||
# xpath queries
|
# xpath queries
|
||||||
xpath_results = '//table[contains(@class, "list_style table_fixed")]//tr[not(th)]'
|
xpath_results = '//table[contains(@class, "list_style table_fixed")]//tr[not(th)]'
|
||||||
|
@ -71,7 +71,7 @@ class TestAcgsouEngine(SearxTestCase):
|
|||||||
self.assertEqual(len(results), 1)
|
self.assertEqual(len(results), 1)
|
||||||
|
|
||||||
r = results[0]
|
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['content'], 'Category: "testcategory".')
|
||||||
self.assertEqual(r['title'], 'torrentname')
|
self.assertEqual(r['title'], 'torrentname')
|
||||||
self.assertEqual(r['filesize'], 1048576)
|
self.assertEqual(r['filesize'], 1048576)
|
||||||
|
Loading…
Reference in New Issue
Block a user