diff --git a/docs/CloudStrm.md b/docs/CloudStrm.md index 4487fdc..1f43af0 100644 --- a/docs/CloudStrm.md +++ b/docs/CloudStrm.md @@ -2,6 +2,7 @@ ### 更新记录 +- 3.3 fix bug - 3.2 fix bug - 3.1 注册交互命令、注册公共服务 - 3.0 实现改为定时扫描 diff --git a/package.json b/package.json index 27a7eaf..229d7a4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "CloudStrm": { "name": "云盘Strm生成", "description": "监控文件创建,生成Strm文件。", - "version": "3.2", + "version": "3.3", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png", "author": "thsrite", "level": 1 diff --git a/plugins/cloudstrm/__init__.py b/plugins/cloudstrm/__init__.py index c171082..ceb7291 100644 --- a/plugins/cloudstrm/__init__.py +++ b/plugins/cloudstrm/__init__.py @@ -25,7 +25,7 @@ class CloudStrm(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png" # 插件版本 - plugin_version = "3.2" + plugin_version = "3.3" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -290,6 +290,7 @@ class CloudStrm(_PluginBase): os.makedirs(dest_file) continue else: + # 非媒体文件 if Path(dest_file).exists(): logger.info(f"目标文件 {dest_file} 已存在") continue @@ -339,6 +340,11 @@ class CloudStrm(_PluginBase): # 构造.strm文件路径 strm_path = os.path.join(dest_path, f"{os.path.splitext(video_name)[0]}.strm") + # strm已存在跳过处理 + if Path(strm_path).exists(): + logger.info(f"strm文件已存在 {strm_path}") + return + logger.info(f"替换前本地路径:::{dest_file}") # 云盘模式