修复字符串格式化中的引号使用,确保正确生成图像链接

This commit is contained in:
远野千束(神羽) 2024-12-13 03:47:23 +08:00
parent 0389a97b69
commit 9792a2c61f

View File

@ -38,7 +38,7 @@ async def introduce(msg: str):
img = soup.find("img", class_="infobox-image") img = soup.find("img", class_="infobox-image")
if img: if img:
result += f"![ {msg} ]( {img["src"]} ) \n" result += f"![ {msg} ]( {img['src']} ) \n"
div = soup.find("div", class_="mw-parser-output") div = soup.find("div", class_="mw-parser-output")
if div: if div: