diff --git a/LunaTranslator/LunaTranslator/metadata/abstract.py b/LunaTranslator/LunaTranslator/metadata/abstract.py index 2bbc9d0f..fc701c7f 100644 --- a/LunaTranslator/LunaTranslator/metadata/abstract.py +++ b/LunaTranslator/LunaTranslator/metadata/abstract.py @@ -146,11 +146,14 @@ class common: developers = data.get("developers", []) webtags = data.get("webtags", []) imagepath_all = data.get("imagepath_all", []) - + normaled = [ + os.path.normpath(os.path.abspath(_)) + for _ in savehook_new_data[gameuid]["imagepath_all"] + ] for _ in imagepath_all: if _ is None: continue - if _ not in savehook_new_data[gameuid]["imagepath_all"]: + if os.path.normpath(os.path.abspath(_)) not in normaled: savehook_new_data[gameuid]["imagepath_all"].append(_) if title: if not savehook_new_data[gameuid]["istitlesetted"]: