fix CloudDrive2助手v1.8.4 添加115 429消息通知

This commit is contained in:
thsrite
2024-10-21 09:28:02 +08:00
parent dcd2776b8d
commit c912c8242a
3 changed files with 8 additions and 4 deletions

View File

@@ -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 `媒体库重复媒体检查,可选保留规则保留其一。`

View File

@@ -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路径 磁链",

View File

@@ -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: