Update vndb.py

This commit is contained in:
恍兮惚兮 2024-04-12 04:49:01 +08:00
parent 5309dfed0a
commit bea1ceb83a

View File

@ -139,31 +139,21 @@ def getvidbytitle_release(title):
def getdevelopersbyid(vid):
def _js(js):
_ = []
for item in js["results"][0]["developers"]:
if item["original"]:
_.append(item["original"])
return _
origin = safegetvndbjson(
"https://api.vndb.org/kana/vn",
{"filters": ["id", "=", vid], "fields": "developers.original"},
_js,
)
def _js(js):
_ = []
for item in js["results"][0]["developers"]:
_.append(item["name"])
return _
name = safegetvndbjson(
"https://api.vndb.org/kana/vn",
{"filters": ["id", "=", vid], "fields": "developers.name"},
{"filters": ["id", "=", vid], "fields": "developers.name,developers.origin"},
_js,
)
return name + origin
return name
def getvidbytitle(title):