From c912c8242a255335ac142fe8aca7419a63e7be77 Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 21 Oct 2024 09:28:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20CloudDrive2=E5=8A=A9=E6=89=8Bv1.8.4=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0115=20429=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- package.json | 3 ++- plugins/cd2assistant/__init__.py | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index acc23df..844f14e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ 46. Sql执行器 v1.3 `自定义MoviePilot数据库Sql执行。` 47. 命令执行器 v1.2 `自定义容器命令执行。` 48. `-----------------------------` -49. [CloudDrive2助手v1.8.3](docs%2FCd2Assistant.md) `监控上传任务,检测是否有异常,发送通知。` +49. [CloudDrive2助手v1.8.4](docs%2FCd2Assistant.md) `监控上传任务,检测是否有异常,发送通知。` 50. 软连接重定向 v1.2 `重定向软连接指向。` 51. 云盘同步删除 v1.5.4 `媒体库删除软连接文件后,同步删除云盘文件。` 52. 媒体库重复媒体检测 v1.9 `媒体库重复媒体检查,可选保留规则保留其一。` diff --git a/package.json b/package.json index 691e2e0..c3f2203 100644 --- a/package.json +++ b/package.json @@ -623,12 +623,13 @@ "name": "CloudDrive2助手", "description": "监控上传任务,检测是否有异常,发送通知。", "labels": "云盘", - "version": "1.8.3", + "version": "1.8.4", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/clouddrive.png", "author": "thsrite", "level": 2, "v2": true, "history": { + "v1.8.4": "添加115 429消息通知", "v1.8.3": "添加异常处理,解决cd2上本地目录获取存储空间失败的问题", "v1.8.2": "插件页面密码类型设置为pasword", "v1.8.1": "云下载支持自定义路径 /cd /cd2路径 磁链", diff --git a/plugins/cd2assistant/__init__.py b/plugins/cd2assistant/__init__.py index 2b0b23b..cf755e2 100644 --- a/plugins/cd2assistant/__init__.py +++ b/plugins/cd2assistant/__init__.py @@ -32,7 +32,7 @@ class Cd2Assistant(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/clouddrive.png" # 插件版本 - plugin_version = "1.8.3" + plugin_version = "1.8.4" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -182,7 +182,10 @@ class Cd2Assistant(_PluginBase): error_msg = f"云盘 {f} cookie过期" except Exception as err: logger.error(f"云盘 {f} cookie过期:{err}") - error_msg = f"云盘 {f} cookie过期" + if "429" in str(err): + error_msg = f"云盘 {f} 访问频率过高,请稍后再试" + else: + error_msg = f"云盘 {f} cookie过期" # 发送通知 if self._notify and error_msg: