From 9ac422cfbc06d61e4e574df0a769e49e8bd8df10 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: Wed, 25 Sep 2024 00:26:01 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/metadata/vndb.py | 6 +++++- plugins/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/metadata/vndb.py b/LunaTranslator/LunaTranslator/metadata/vndb.py index e8f5d962..2e9138da 100644 --- a/LunaTranslator/LunaTranslator/metadata/vndb.py +++ b/LunaTranslator/LunaTranslator/metadata/vndb.py @@ -110,7 +110,11 @@ def getcharnamemapbyid(proxy, vid): namemap = {} try: for r in js["results"]: - namemap[r["original"]] = r["name"] + _o = r["original"] + # 英语游戏没有original + if not _o: + _o = r["name"] + namemap[_o] = r["name"] except: pass return namemap diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 866a907e..c60958a6 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 38) -set(VERSION_PATCH 12) +set(VERSION_PATCH 13) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)