mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #1457 from return42/fix-1435
[fix] engine z-zlibrary https URL
This commit is contained in:
		
						commit
						c5ec8db6b3
					
				
					 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…
	
	Add table
		
		Reference in a new issue