Explorar el Código

Merge pull request #1289 from rinpatch/acgsou-http

Switch acgsou to http
Adam Tauber hace 6 años
padre
commit
5897343ab2
Ninguna cuenta está vinculada al correo electrónico del colaborador
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      searx/engines/acgsou.py
  2. 1
    1
      tests/unit/engines/test_acgsou.py

+ 1
- 1
searx/engines/acgsou.py Ver fichero

@@ -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 Ver fichero

@@ -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)