mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
fix
This commit is contained in:
parent
486304afee
commit
7b69308293
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user