From 4be2456f185faaad7d7ad8ca53e362e695161a01 Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 3 Jan 2024 20:12:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=94=9F=E6=88=90=E4=B8=80=E5=BC=A0?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/shortplaymonitor/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index 68a3f17..5c9ae28 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -266,10 +266,10 @@ class ShortPlayMonitor(_PluginBase): logger.info(f"文件 {event_path} 硬链接完成") # 生成缩略图 - thumb_path = self.gen_file_thumb(file_path=target_path, - cover_conf=cover_conf) if not (target_path.parent / "poster.jpg").exists(): - SystemUtils.copy(thumb_path, target_path.parent / "poster.jpg") + thumb_path = self.gen_file_thumb(file_path=target_path, + cover_conf=cover_conf) + SystemUtils.move(thumb_path, target_path.parent / "poster.jpg") else: logger.error(f"文件 {event_path} 硬链接失败,错误码:{retcode}")