From 4dff4c754474bb6440bebe90a7d6a59f0be03efa Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 6 Mar 2024 14:10:02 +0800 Subject: [PATCH] fix CloudStrm3.2 fix bug --- docs/CloudStrm.md | 1 + package.json | 2 +- plugins/cloudstrm/__init__.py | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/CloudStrm.md b/docs/CloudStrm.md index 3eef717..4487fdc 100644 --- a/docs/CloudStrm.md +++ b/docs/CloudStrm.md @@ -2,6 +2,7 @@ ### 更新记录 +- 3.2 fix bug - 3.1 注册交互命令、注册公共服务 - 3.0 实现改为定时扫描 - 2.2 fix#12 diff --git a/package.json b/package.json index f848a4b..27a7eaf 100644 --- a/package.json +++ b/package.json @@ -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 diff --git a/plugins/cloudstrm/__init__.py b/plugins/cloudstrm/__init__.py index 20b8287..c171082 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.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文件生成服务",