fix CloudStrm3.3 fix bug

This commit is contained in:
thsrite
2024-03-06 14:24:43 +08:00
parent 4dff4c7544
commit caf04b43fb
3 changed files with 9 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
### 更新记录
- 3.3 fix bug
- 3.2 fix bug
- 3.1 注册交互命令、注册公共服务
- 3.0 实现改为定时扫描

View File

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

View File

@@ -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}")
# 云盘模式