mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
Update frame_source.py
This commit is contained in:
parent
65b5ac75a3
commit
0298976c31
@ -164,7 +164,7 @@ async def image_fetch(url: str) -> Optional[bytes]:
|
||||
@source_extractor(Image)
|
||||
async def _(seg: Image):
|
||||
image = await image_fetch(
|
||||
seg.data['url'],
|
||||
seg.data['url'].replace('https://multimedia.nt.qq.com.cn/', 'http://multimedia.nt.qq.com.cn/', 1),
|
||||
)
|
||||
if not image:
|
||||
raise RuntimeError("Cannot fetch image")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user