mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
修复字符串格式化中的引号使用,确保正确生成图像链接
This commit is contained in:
parent
0389a97b69
commit
9792a2c61f
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user