From 5e8ed49b175acd91f7236d6f442efca08cc2106d Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 7 Nov 2024 20:00:17 +0800 Subject: [PATCH] fix --- plugins.v2/cloudstrmcompanion/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins.v2/cloudstrmcompanion/__init__.py b/plugins.v2/cloudstrmcompanion/__init__.py index 805db0b..42ecbe6 100644 --- a/plugins.v2/cloudstrmcompanion/__init__.py +++ b/plugins.v2/cloudstrmcompanion/__init__.py @@ -239,10 +239,6 @@ class CloudStrmCompanion(_PluginBase): logger.error("未获取到可用目录监控配置,请检查") return - if not self._115client: - logger.error("115_cookie 未配置或cookie已失效,请检查配置") - return - if event: event_data = event.event_data if not event_data or event_data.get("action") != "cloudStrmCompanion": @@ -252,6 +248,10 @@ class CloudStrmCompanion(_PluginBase): title="开始云盘Strm助手同步生成 ...", userid=event.event_data.get("user")) + if not self._115client: + logger.error("115_cookie 未配置或cookie已失效,请检查配置") + return + logger.info("云盘Strm助手同步生成任务开始") # 首次扫描或者重建索引 if Path(self._cloud_files_json).exists():