Update frame_source.py

This commit is contained in:
Refound 2025-02-01 14:54:56 +08:00 committed by GitHub
parent 65b5ac75a3
commit 0298976c31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")