summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-07-06 13:44:08 +0200
committerGitHub <noreply@github.com>2022-07-06 13:44:08 +0200
commitc5ec8db6b3cab17ff3416039d0fdea81d14bdc9e (patch)
tree9f5cf3a5e92ef19e4fb901a0733c771198749c3e /searx
parentbe2f782c9e3f1b9d93b8a6bfb51fc6774bdc58e9 (diff)
parent970a69012b0847474d0e55624a5d1c6a63710457 (diff)
downloadsearxng-c5ec8db6b3cab17ff3416039d0fdea81d14bdc9e.tar.gz
searxng-c5ec8db6b3cab17ff3416039d0fdea81d14bdc9e.zip
Merge pull request #1457 from return42/fix-1435
[fix] engine z-zlibrary https URL
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/zlibrary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/zlibrary.py b/searx/engines/zlibrary.py
index 81d93ac84..7778f69b6 100644
--- a/searx/engines/zlibrary.py
+++ b/searx/engines/zlibrary.py
@@ -39,7 +39,7 @@ def init(engine_settings=None):
resp = http_get('https://z-lib.org', timeout=5.0)
if resp.ok:
dom = html.fromstring(resp.text)
- base_url = "https:" + extract_text(
+ base_url = extract_text(
eval_xpath(dom, './/a[contains(@class, "domain-check-link") and @data-mode="books"]/@href')
)
logger.debug("using base_url: %s" % base_url)