This commit is contained in:
thsrite
2024-11-09 17:19:58 +08:00
parent 732e1ebeaa
commit ce096c4d1f
4 changed files with 6 additions and 5 deletions

View File

@@ -26,12 +26,13 @@
"name": "云盘Strm生成增量版",
"description": "监控文件创建生成Strm文件增量版。",
"labels": "云盘",
"version": "1.1",
"version": "1.1.1",
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png",
"author": "thsrite",
"level": 1,
"v2": true,
"history": {
"v1.1.1": "写入strm使用utf-8编码",
"v1.1": "某种场景下可能出现卡死修复bug",
"v1.0": "增量监控"
}

View File

@@ -415,7 +415,7 @@ class CloudStrmCompanion(_PluginBase):
return
# 写入.strm文件
with open(strm_file, 'w') as f:
with open(strm_file, 'w', encoding='utf-8') as f:
f.write(strm_content)
logger.info(f"创建strm文件成功 {strm_file} -> {strm_content}")

View File

@@ -414,7 +414,7 @@ class CloudStrm(_PluginBase):
logger.info(f"替换后emby容器内路径:::{dest_file}")
# 写入.strm文件
with open(strm_path, 'w') as f:
with open(strm_path, 'w', encoding='utf-8') as f:
f.write(dest_file)
logger.info(f"创建strm文件 {strm_path}")

View File

@@ -26,7 +26,7 @@ class CloudStrmIncrement(_PluginBase):
# 插件图标
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/create.png"
# 插件版本
plugin_version = "1.1"
plugin_version = "1.1.1"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -411,7 +411,7 @@ class CloudStrmIncrement(_PluginBase):
logger.info(f"替换后emby容器内路径:::{dest_file}")
# 写入.strm文件
with open(strm_path, 'w') as f:
with open(strm_path, 'w', encoding='utf-8') as f:
f.write(dest_file)
logger.info(f"创建strm文件 {strm_path}")