From 7a1e917b391c1a3e2c5cf89185f7fae4c07b6a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Wed, 25 Dec 2024 01:24:22 +0800 Subject: [PATCH] . --- py/LunaTranslator/metadata/vndb.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/py/LunaTranslator/metadata/vndb.py b/py/LunaTranslator/metadata/vndb.py index c9a1b6ee..1c91ee7c 100644 --- a/py/LunaTranslator/metadata/vndb.py +++ b/py/LunaTranslator/metadata/vndb.py @@ -152,7 +152,7 @@ def getinfosbyvid(proxy, vid): sc=imgs, dev=dev, tags=sorted(tags, key=lambda x: -rates[tags.index(x)]), - description=js["results"][0]['description'] + description=js["results"][0]["description"], ) @@ -380,5 +380,9 @@ class searcher(common): "imagepath_all": img + sc, "webtags": infos["tags"], "developers": infos["dev"], - "description":infos['description'] + "description": ( + infos["description"].replace("\n", "
") + if infos["description"] + else None + ), }