From 993daf854b8939c2a03b4b880982e2eaf2699df0 Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 4 Jan 2024 09:24:35 +0800 Subject: [PATCH] fix --- plugins/shortplaymonitor/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index f41ffc9..2053be5 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -287,7 +287,10 @@ class ShortPlayMonitor(_PluginBase): if not (target_path.parent / "poster.jpg").exists(): thumb_path = self.gen_file_thumb(file_path=target_path) if thumb_path and Path(thumb_path).exists(): - SystemUtils.move(thumb_path, target_path.parent / "poster.jpg") + self.__save_poster(input_path=thumb_path, + poster_path=target_path.parent / "poster.jpg", + cover_conf=cover_conf) + thumb_path.unlink() else: # 检查是否有缩略图 thumb_files = SystemUtils.list_files(directory=target_path.parent,