From 2ce7e72e35af6b2c56b032b5fb3a5df15fc61e2a Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 15 Apr 2025 14:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=85=A7=E7=89=87=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/kid_photo_extractor/main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/kid_photo_extractor/main.py b/plugins/kid_photo_extractor/main.py index e00c3a7..da53210 100644 --- a/plugins/kid_photo_extractor/main.py +++ b/plugins/kid_photo_extractor/main.py @@ -348,11 +348,11 @@ class KidPhotoExtractorPlugin(MessagePluginInterface): @property def version(self) -> str: - return "1.0.0" + return "0.0.1" @property def description(self) -> str: - return "提供小朋友照片提取和分类功能,基于人脸识别技术" + return "未完成-提供小朋友照片提取和分类功能,基于人脸识别技术" @property def author(self) -> str: @@ -400,7 +400,10 @@ class KidPhotoExtractorPlugin(MessagePluginInterface): self.command_format = self._config.get("KidPhotoExtractor", {}).get("command-format", "使用 #开始分析照片 [目录路径] 开始分析") self.enable = self._config.get("KidPhotoExtractor", {}).get("enable", True) - + # 只在插件启用时初始化数据库和其他组件 TODO,现在过于复杂,暂时不启用 + if not self.enable: + self.LOG.info(f"[{self.name}] 插件已禁用,跳过组件初始化") + return True # 初始化组件 self.face_analyzer = FaceAnalyzer() self.face_grouper = FaceGrouper()