This commit is contained in:
恍兮惚兮 2024-09-16 14:02:04 +08:00
parent 486304afee
commit 7b69308293
2 changed files with 7 additions and 9 deletions

View File

@ -122,23 +122,21 @@ def getinfosbyvid(proxy, vid):
def getcharnamemapbyid(proxy, vid): def getcharnamemapbyid(proxy, vid):
js = safegetvndbjson( js = safegetvndbjson(
proxy, proxy,
"character",
{
"filters": [
"vn", "vn",
"=", {
["id", "=", vid], "filters": ["id", "=", vid],
], "fields": "va.character.name,va.character.original",
"fields": "name,original",
}, },
) )
print(js)
if js: if js:
res = js["results"] res = js["results"][0]["va"]
else: else:
return {} return {}
namemap = {} namemap = {}
try: try:
for r in res: for r in res:
r = r["character"]
namemap[r["original"]] = r["name"] namemap[r["original"]] = r["name"]
except: except:
pass pass

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5) set(VERSION_MAJOR 5)
set(VERSION_MINOR 36) set(VERSION_MINOR 36)
set(VERSION_PATCH 0) set(VERSION_PATCH 1)
add_library(pch pch.cpp) add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h) target_precompile_headers(pch PUBLIC pch.h)