From fe078e343492b82b45ad4c3e42c716f32eaa52ff Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 5 Mar 2024 17:21:51 +0800 Subject: [PATCH] fix --- plugins/playletcategory/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/playletcategory/__init__.py b/plugins/playletcategory/__init__.py index f0e8018..a23d4e6 100644 --- a/plugins/playletcategory/__init__.py +++ b/plugins/playletcategory/__init__.py @@ -271,6 +271,8 @@ class PlayletCategory(_PluginBase): # 新的文件目录 new_path = root_path / self._category_name / tv_name / season_dir / file.name logger.info(f"移动文件 {file} 到 {new_path} ...") + if not new_path.parent.exists(): + new_path.parent.mkdir(parents=True, exist_ok=True) code, msg = SystemUtils.move(Path(file), new_path) if code == 0: logger.info(f"{file} 移动完成")