From 14249b2bbd1f4be661ef3126a9f37512d7d6fe33 Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 3 Jan 2024 21:06:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=94=9F=E6=88=90=E5=9B=BE=E7=89=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/shortplaymonitor/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index 6c59e03..b9d80b0 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -298,10 +298,11 @@ class ShortPlayMonitor(_PluginBase): if thumb_path.exists(): logger.info(f"缩略图已存在:{thumb_path}") return - if self.get_thumb(video_path=str(file_path), - image_path=str(thumb_path), - cover_conf=str(cover_conf), - frames=self._timeline): + self.get_thumb(video_path=str(file_path), + image_path=str(thumb_path), + cover_conf=str(cover_conf), + frames=self._timeline) + if Path(thumb_path).exists(): logger.info(f"{file_path} 缩略图已生成:{thumb_path}") return thumb_path except Exception as err: