From 441345ebb8f23b82135dfcf5dd5fbe58bcb7cbcd Mon Sep 17 00:00:00 2001 From: wanxp <977741432@qq.com> Date: Thu, 16 May 2024 18:34:50 +0800 Subject: [PATCH] fix sync terminate when item wrong --- manifest.json | 2 +- package.json | 2 +- src/org/wanxp/lang/locale/en.ts | 8 +++++--- src/org/wanxp/lang/locale/zh-cn.ts | 6 +++--- versions.json | 3 ++- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index 3d2d650..2d4df55 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-douban-plugin", "name": "Douban", - "version": "2.0.4", + "version": "2.0.5", "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 18d0061..977eeff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-douban-plugin", - "version": "2.0.4", + "version": "2.0.5", "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/lang/locale/en.ts b/src/org/wanxp/lang/locale/en.ts index a97fa77..c00b8e5 100644 --- a/src/org/wanxp/lang/locale/en.ts +++ b/src/org/wanxp/lang/locale/en.ts @@ -214,8 +214,9 @@ PS: This file could be delete if you want to. '121430': `Save Attachment File`, '121431': `Save attachment file to local disk, such as image ? If you do not enable this feature, it will not show cover image in note`, '121432': `Attachment folder`, - '121433': `Attachment file created from Obsidian-Douban will be placed in this folder, If blank, they will be placed in the default location for this vault. example: {{myType}}/attachments`, - '121434': `assets`, + '121433': `Attachment file created from Obsidian-Douban will be placed in this folder, + If blank, they will be created by default name. support all basic template variables. example: {{type}}/assets`, + '121434': `assets`, '121435': `Save High Definition Cover`, '121436': `High Definition Cover looks better but it will take more space, and you must login douban in this plugin`, '121437': `Please login first, Then this function could be enable`, @@ -232,7 +233,7 @@ PS: This file could be delete if you want to. '121503': `Default Folder`, '121601': `Note Name`, - '121602': `Nodes created from Obsidian-Douban will use this fileName as template(also support filePath), + '121602': `Nodes created from Obsidian-Douban will use this fileName as template(also support filePath), and support If blank, they will be created by default name. support all basic template variables. example: {{type}}/{{title}}`, '121604': `Note Path Previous`, '120603': `Display Preview`, @@ -280,6 +281,7 @@ PS: This file could be delete if you want to. '130107': `Can not find array setting for {1} in {0} , Please add it in array settings`, '130108': `Redirect times too much, please check your network or proxy`, + '130120': `An error occurred during Sync, but Sync will continue. Error item is {}`, '140201': `[OB-Douban]: searching '{0}'...`, '140202': `[OB-Douban]: result {0} rows`, diff --git a/src/org/wanxp/lang/locale/zh-cn.ts b/src/org/wanxp/lang/locale/zh-cn.ts index c99dd22..eed73bf 100644 --- a/src/org/wanxp/lang/locale/zh-cn.ts +++ b/src/org/wanxp/lang/locale/zh-cn.ts @@ -110,7 +110,7 @@ export default { '1204': `配置对应类型的模板文件, 如果为空则使用默认模板. 模板可使用的参数列举在最下面.👇 `, '1205': `🧡提示: 建议点击右侧'复制'默认模板按钮, 然后在新建的文件中粘贴修改模板, 最后回到此处选择对应模板. `, '1240': `自定义属性`, - '1241': `自定义参数使用时请用'{{}}'包裹, 举例: 参数myType, 则使用时为{{myType}}. `, + '1241': `自定义参数,值本身也支持使用参数,如myTitle:《{{title}}》。在模板中使用参数时请用'{{}}'包裹, 举例: 参数myType, 则使用时为{{myType}}. `, '1242': `添加自定义参数, 参数可用于模板中或者文件名中. `, '1250': `高级设置`, '1252': `一些运行时的高级配置,如开启debug模式`, @@ -235,7 +235,7 @@ export default { '121430': `保存图片附件`, '121431': `导入数据会同步保存图片附件到本地文件夹, 如电影封面,书籍封面。如果需要显示封面,请保持开启该功能。`, '121432': `附件存放位置`, - '121433': `保存的附件将会存放至该文件夹中. 如果为空, 笔记将会存放到默认位置(assets)。如:{{myType}}/attachments`, + '121433': `保存的附件将会存放至该文件夹中. 如果为空, 笔记将会存放到默认位置(assets), 且支持所有'通用'的参数。如:{{myType}}/attachments`, '121434': `assets`, '121435': `保存高清封面`, '121436': `高清封面图片质量更高清晰度更好, 需要您在此插件 登录豆瓣 才能生效, 若未登录则默认使用低精度版本封面`, @@ -278,7 +278,7 @@ export default { '130105': `由于多次频繁请求数据,豆瓣当前暂时不可用. 请于12小时或24小时后再重试,或重置你的网络(如重新拨号或更换网络) `, '130106': `请尝试在Douban插件中登录后操作. 若还是无效果则尝试于12小时或24小时后再重试,或重置你的网络(如重新拨号或更换网络) `, '130107': `参数{0}中指定的数组输出类型{1}不存在,请前往配置进行设置`, - + '130120': `同步时发生错误,但同步将会继续。错误项目是 {}。`, '140201': `[OB-Douban]: 开始搜索'{0}'...`, '140202': `[OB-Douban]: 搜索条数{0}条`, diff --git a/versions.json b/versions.json index 2ecd29c..03644fc 100644 --- a/versions.json +++ b/versions.json @@ -49,6 +49,7 @@ "2.0.1": "0.12.0", "2.0.2": "0.12.0", "2.0.3": "0.12.0", - "2.0.4": "0.12.0" + "2.0.4": "0.12.0", + "2.0.5": "0.12.0" }