From a6dfb100534327bc30588d776eeb8a23a06e25f5 Mon Sep 17 00:00:00 2001 From: mol Date: Wed, 6 Dec 2023 14:14:41 +0800 Subject: [PATCH] wikijs --- .drone.yml | 2 +- engines/wikijs.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 78489a3..d9ad4ee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,7 +26,7 @@ steps: # 定义管道的执行步骤 registry: https://git.liliyamol.cn:8081 repo: git.liliyamol.cn:8081/mol/searxng # auto_tag: true - tags: ["1.0.0", latest] + tags: ["1.2.0", latest] --- kind: pipeline # 定义一个管道 diff --git a/engines/wikijs.py b/engines/wikijs.py index 44761b6..ced103b 100644 --- a/engines/wikijs.py +++ b/engines/wikijs.py @@ -52,13 +52,15 @@ def response(resp): try: url = result['path'] title = result['title'] + content = result['description'] + locale = result['locale'] except: continue results.append( { - 'url': host + to_string(url), + 'url': host + '/' + to_string(locale) + '/' + to_string(url), 'title': to_string(title), - 'content': '', + 'content': to_string(content), } ) for suggestion in search_result['suggestions']: