diff --git a/LunaTranslator/LunaTranslator/myutils/vndb.py b/LunaTranslator/LunaTranslator/myutils/vndb.py index 4651f1db..b00b8718 100644 --- a/LunaTranslator/LunaTranslator/myutils/vndb.py +++ b/LunaTranslator/LunaTranslator/myutils/vndb.py @@ -138,32 +138,22 @@ def getvidbytitle_release(title): ) -def getdevelopersbyid(vid): +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):