diff options
| author | Noémi Ványi <sitbackandwait@gmail.com> | 2020-12-09 17:33:18 +0100 |
|---|---|---|
| committer | Noémi Ványi <sitbackandwait@gmail.com> | 2020-12-09 20:49:54 +0100 |
| commit | 3a63dfbdd7ff53c2e083915b0dea481a6ea0aaaa (patch) | |
| tree | e87938d67386bb7d0272c14e1902867eeb152676 /searx/engines/acgsou.py | |
| parent | 42a194898baf96e15edeb9268fbec5ecd4423c09 (diff) | |
display if an engine does not support https
Closes #302
Diffstat (limited to 'searx/engines/acgsou.py')
| -rw-r--r-- | searx/engines/acgsou.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/acgsou.py b/searx/engines/acgsou.py index b8b367c24..637443edc 100644 --- a/searx/engines/acgsou.py +++ b/searx/engines/acgsou.py @@ -18,7 +18,7 @@ categories = ['files', 'images', 'videos', 'music'] paging = True # search-url -base_url = 'http://www.acgsou.com/' +base_url = 'https://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)]' @@ -40,7 +40,7 @@ def response(resp): for result in eval_xpath_list(dom, xpath_results): # defaults filesize = 0 - magnet_link = "magnet:?xt=urn:btih:{}&tr=http://tracker.acgsou.com:2710/announce" + magnet_link = "magnet:?xt=urn:btih:{}&tr=https://tracker.acgsou.com:2710/announce" category = extract_text(eval_xpath_getindex(result, xpath_category, 0, default=[])) page_a = eval_xpath_getindex(result, xpath_title, 0) |