mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44: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):
|
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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user