From 69ef3e0a826ac664a0031d813d641abbae89adc3 Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 26 Apr 2024 09:39:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=93=8D=E4=BD=9C=E5=8E=86=E5=8F=B2Unico?= =?UTF-8?q?de=E7=BC=96=E7=A0=81=E8=BD=AC=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- package.json | 6 ++---- plugins/subscribegroup/__init__.py | 5 +++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ad6e5bf..bfe0a0d 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,4 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - docker自定义任务 1.2 - 插件彻底卸载 1.0 - 实时软连接 1.3 -- 订阅规则自动填充 2.4 +- 订阅规则自动填充 2.5 diff --git a/package.json b/package.json index 7d5faa2..bee3815 100644 --- a/package.json +++ b/package.json @@ -324,14 +324,14 @@ "SubscribeGroup": { "name": "订阅规则自动填充", "description": "电视剧下载后自动添加官组等信息到订阅;添加订阅后根据二级分类名称自定义订阅规则。", - "version": "2.4", + "version": "2.5", "icon": "teamwork.png", "author": "thsrite", "level": 2, "history": { + "v2.5": "操作历史Unicode编码转中文", "v2.4": "保存路径支持变量{name} (订阅名称 (年份))", "v2.3": "二级分类自定义填充支持保存路径", - "v2.2": "优化", "v2.1": "站点与官组分开,修复质量无填充", "v2.0": "种子下载自定义填充支持自定义占位符", "v1.8": "修复种子下载不填充bug", @@ -341,8 +341,6 @@ "v1.4": "支持根据二级分类名称自定义订阅规则", "v1.3": "增加质量、分辨率、特效信息填充", "v1.2": "修复订阅已存在包含关键词和订阅站点", - "v1.1": "fix bug", - "v1.0": "init" } } } diff --git a/plugins/subscribegroup/__init__.py b/plugins/subscribegroup/__init__.py index 734fe24..4033156 100644 --- a/plugins/subscribegroup/__init__.py +++ b/plugins/subscribegroup/__init__.py @@ -20,7 +20,7 @@ class SubscribeGroup(_PluginBase): # 插件图标 plugin_icon = "teamwork.png" # 插件版本 - plugin_version = "2.4" + plugin_version = "2.5" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -674,7 +674,8 @@ class SubscribeGroup(_PluginBase): }, { 'component': 'td', - 'text': history.get("content").encode('utf-8').decode() if history.get("content") else '' + 'text': history.get("content").encode('utf-8').decode('unicode_escape') if history.get( + "content") else '' } ] } for history in historys