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):
js = safegetvndbjson(
proxy,
"character",
"vn",
{
"filters": [
"vn",
"=",
["id", "=", vid],
],
"fields": "name,original",
"filters": ["id", "=", vid],
"fields": "va.character.name,va.character.original",
},
)
print(js)
if js:
res = js["results"]
res = js["results"][0]["va"]
else:
return {}
namemap = {}
try:
for r in res:
r = r["character"]
namemap[r["original"]] = r["name"]
except:
pass

View File

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