fix CloudStrm3.2 fix bug

This commit is contained in:
thsrite
2024-03-06 14:10:02 +08:00
parent 07c9aa1edb
commit 4dff4c7544
3 changed files with 7 additions and 3 deletions

View File

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

View File

@@ -2,7 +2,7 @@
"CloudStrm": {
"name": "云盘Strm生成",
"description": "监控文件创建生成Strm文件。",
"version": "3.1",
"version": "3.2",
"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.1"
plugin_version = "3.2"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -151,6 +151,9 @@ class CloudStrm(_PluginBase):
"""
扫描
"""
if not self._enabled:
logger.error("插件未开启")
return
if not self._dirconf or not self._dirconf.keys():
logger.error("未获取到可用目录监控配置,请检查")
return
@@ -412,7 +415,7 @@ class CloudStrm(_PluginBase):
"kwargs": {} # 定时器参数
}]
"""
if self._enabled and self._cron:
if self._enabled:
return [{
"id": "CloudStrm",
"name": "云盘strm文件生成服务",