Browse Source

[fix] Library Genesis links shifted by 1 #1998

Fixes: #1998
Suggested-by: @linuxmue
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 4 years ago
parent
commit
b0bb0a3a0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/settings.yml

+ 1 - 1
searx/settings.yml

@@ -492,7 +492,7 @@ engines:
   - name : library genesis
   - name : library genesis
     engine : xpath
     engine : xpath
     search_url : http://libgen.rs/search.php?req={query}
     search_url : http://libgen.rs/search.php?req={query}
-    url_xpath : //a[contains(@href,"bookfi.net")]/@href
+    url_xpath : //a[contains(@href,"bookfi.net/md5")]/@href
     title_xpath : //a[contains(@href,"book/")]/text()[1]
     title_xpath : //a[contains(@href,"book/")]/text()[1]
     content_xpath : //td/a[1][contains(@href,"=author")]/text()
     content_xpath : //td/a[1][contains(@href,"=author")]/text()
     categories : general
     categories : general