Browse Source

Merge pull request #1289 from rinpatch/acgsou-http

Switch acgsou to http
Adam Tauber 6 years ago
parent
commit
5897343ab2
No account linked to committer's email
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      searx/engines/acgsou.py
  2. 1
    1
      tests/unit/engines/test_acgsou.py

+ 1
- 1
searx/engines/acgsou.py View File

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

+ 1
- 1
tests/unit/engines/test_acgsou.py View File

71
         self.assertEqual(len(results), 1)
71
         self.assertEqual(len(results), 1)
72
 
72
 
73
         r = results[0]
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
         self.assertEqual(r['content'], 'Category: "testcategory".')
75
         self.assertEqual(r['content'], 'Category: "testcategory".')
76
         self.assertEqual(r['title'], 'torrentname')
76
         self.assertEqual(r['title'], 'torrentname')
77
         self.assertEqual(r['filesize'], 1048576)
77
         self.assertEqual(r['filesize'], 1048576)