Pārlūkot izejas kodu

Merge pull request #1289 from rinpatch/acgsou-http

Switch acgsou to http
Adam Tauber 6 gadus atpakaļ
vecāks
revīzija
5897343ab2
Revīzijas autora e-pasts nav piesaistīts nevienam kontam
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      searx/engines/acgsou.py
  2. 1
    1
      tests/unit/engines/test_acgsou.py

+ 1
- 1
searx/engines/acgsou.py Parādīt failu

@@ -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 Parādīt failu

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