mirror of
https://github.com/searxng/searxng.git
synced 2024-12-30 05:00:29 +00:00
[fix] engine z-zlibrary https URL
before this patch: DEBUG searx.engines.z-library : using base_url: https:https://de1lib.org with this patch URL is fixed to: DEBUG searx.engines.z-library : using base_url: https://de1lib.org Closes: https://github.com/searxng/searxng/issues/1435 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
7fec286f31
commit
970a69012b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue