From 232439b64c51ede140547a86a43c000ff854f66d Mon Sep 17 00:00:00 2001 From: wanxp <977741432@qq.com> Date: Thu, 11 Jul 2024 10:19:14 +0800 Subject: [PATCH] fix search error --- manifest.json | 2 +- package.json | 2 +- .../douban/data/search/searcher/AbstractSearchPageFetcher.ts | 4 +--- versions.json | 3 ++- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 5e5e693..f01081a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-douban-plugin", "name": "Douban", - "version": "2.0.6", + "version": "2.0.7", "minAppVersion": "0.12.0", "description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .", "author": "Wanxp", diff --git a/package.json b/package.json index 0c00392..bda5925 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-douban-plugin", - "version": "2.0.6", + "version": "2.0.7", "description": "This is a plugin for Obsidian (https://obsidian.md) that can import data from Douban (https://www.douban.com/).", "main": "main.js", "scripts": { diff --git a/src/org/wanxp/douban/data/search/searcher/AbstractSearchPageFetcher.ts b/src/org/wanxp/douban/data/search/searcher/AbstractSearchPageFetcher.ts index cc7e5c6..b3f32f8 100644 --- a/src/org/wanxp/douban/data/search/searcher/AbstractSearchPageFetcher.ts +++ b/src/org/wanxp/douban/data/search/searcher/AbstractSearchPageFetcher.ts @@ -34,9 +34,7 @@ export abstract class AbstractSearchPageFetcher implements SearchPageFetcherInte if (keyword.length == 0) { return ""; } - if (Platform.isMacOS) { - keyword = HttpUtil.encodeUrl(keyword); - } + keyword = HttpUtil.encodeUrl(keyword); return this.getUrl(keyword, start, pageSize) } diff --git a/versions.json b/versions.json index 92bdbc1..b349198 100644 --- a/versions.json +++ b/versions.json @@ -51,5 +51,6 @@ "2.0.3": "0.12.0", "2.0.4": "0.12.0", "2.0.5": "0.12.0", - "2.0.6": "0.12.0" + "2.0.6": "0.12.0", + "2.0.7": "0.12.0" }