From 4e2252647a8d44a28f9fc6e23de703ebcc8f0a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 3 Aug 2024 14:40:29 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/metadata/abstract.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/metadata/abstract.py b/LunaTranslator/LunaTranslator/metadata/abstract.py index 83e0648b..9af26bce 100644 --- a/LunaTranslator/LunaTranslator/metadata/abstract.py +++ b/LunaTranslator/LunaTranslator/metadata/abstract.py @@ -161,7 +161,9 @@ class common: for _ in imagepath_all: if _ is None: continue - if os.path.normpath(os.path.abspath(_)) not in normaled: + norm = os.path.normpath(os.path.abspath(_)) + if norm not in normaled: + normaled.append(norm) savehook_new_data[gameuid]["imagepath_all"].append(_) if title: if not savehook_new_data[gameuid]["istitlesetted"]: