From 03e93c6c10ff35ce1736ba6ebed3729f1b8e7d29 Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 3 Jan 2024 20:48:41 +0800 Subject: [PATCH] fix path --- plugins/shortplaymonitor/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index dea937e..0fc64fe 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -235,7 +235,7 @@ class ShortPlayMonitor(_PluginBase): last = target.replace(str(parent), "") # 自定义识别次 title, _ = WordsMatcher().prepare(parent) - target_path = Path(dest_dir) / title / last + target_path = Path(dest_dir).joinpath(title + last) else: if str(rename_conf) == "smart": target = target_path.replace(dest_dir, "") @@ -243,7 +243,7 @@ class ShortPlayMonitor(_PluginBase): last = target.replace(str(parent), "") # 取.第一个 title = Path(parent).name.split(".")[0] - target_path = Path(dest_dir) / title / last + target_path = Path(dest_dir).joinpath(title + last) else: logger.error(f"{target_path} 智能重命名失败") return