From b4e5eb8493ce6dbcdf8e48ed9bfd06b88792569a Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 12 Apr 2024 16:24:00 +0800 Subject: [PATCH] fix replace --- README.md | 2 +- package.json | 3 ++- plugins/cloudstrm/__init__.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1e00c42..e05c821 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - 站点数据统计 1.4 (无未读消息版本)(废弃) - 站点未读消息 1.4 -- [云盘Strm生成 3.9](docs%2FCloudStrm.md) +- [云盘Strm生成 4.0](docs%2FCloudStrm.md) - [Strm文件模式转换 1.0](docs%2FStrmConvert.md) - 清理订阅缓存 1.0 - 添加种子下载 1.0 diff --git a/package.json b/package.json index fbceb48..a45dd7d 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,12 @@ "CloudStrm": { "name": "云盘Strm生成", "description": "监控文件创建,生成Strm文件。", - "version": "3.9", + "version": "4.0", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png", "author": "thsrite", "level": 1, "history": { + "v4.0": "fix replace", "v3.9": "修复bug", "v3.8": "支持联动其他转移插件", "v3.7": "api模式支持启用https", diff --git a/plugins/cloudstrm/__init__.py b/plugins/cloudstrm/__init__.py index a7405ca..246429f 100644 --- a/plugins/cloudstrm/__init__.py +++ b/plugins/cloudstrm/__init__.py @@ -26,7 +26,7 @@ class CloudStrm(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png" # 插件版本 - plugin_version = "3.9" + plugin_version = "4.0" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -313,7 +313,7 @@ class CloudStrm(_PluginBase): event_data = event.event_data if not event_data or not event_data.get("transferinfo"): return - source_file = event_data.get("transferinfo").target_path + source_file = str(event_data.get("transferinfo").target_path) logger.info(f"收到命令,开始处理单个文件 {source_file} ...") if source_file: self.__strm(source_file)