From 2c57bcebc38de2d862faffceb12f9f4522191c5f Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 8 Jan 2024 15:59:07 +0800 Subject: [PATCH] fix log --- plugins/shortplaymonitor/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index 5fd0bfe..7d77e81 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -315,6 +315,8 @@ class ShortPlayMonitor(_PluginBase): self.__save_poster(input_path=thumb_path, poster_path=target_path.parent / "poster.jpg", cover_conf=cover_conf) + if (target_path.parent / "poster.jpg").exists(): + logger.info(f"{target_path.parent / 'poster.jpg'} 缩略图已生成") thumb_path.unlink() else: # 检查是否有缩略图