mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix #109
This commit is contained in:
@@ -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": "增量监控"
|
||||
}
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user