From 3efbeb507f746c7f2fde0ae0202d49e82ce7bc01 Mon Sep 17 00:00:00 2001 From: RedDeadDepresso <94017243+RedDeadDepresso@users.noreply.github.com> Date: Thu, 26 Sep 2024 02:17:59 +0100 Subject: [PATCH] fix: install chara not working --- modules/install_chara.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/install_chara.py b/modules/install_chara.py index 2f0b245..21bcc8c 100644 --- a/modules/install_chara.py +++ b/modules/install_chara.py @@ -13,14 +13,14 @@ class InstallChara: self.config = config self.file_manager = file_manager self.game_path = self.config.game_path - self.input_path = Path(self.config.install_chara["InputPath"]) # Using Path for input path + self.input_path = Path(self.config.install_chara["InputPath"]) def resolve_png(self, image_path: Path): with image_path.open("rb") as card: data = card.read() if b"KoiKatuChara" in data: if b"KoiKatuCharaSP" in data or b"KoiKatuCharaSun" in data: - basename = Path(image_path[0]).name # Use Path's .name to get the basename + basename = Path(image_path).name logger.error("CHARA", f"{basename} is a KKS card") return self.file_manager.copy_and_paste("CHARA", image_path, self.game_path["chara"])