diff --git a/modules/bilibili/__init__.py b/modules/bilibili/__init__.py index d9af5e27a7..291dc4ba72 100644 --- a/modules/bilibili/__init__.py +++ b/modules/bilibili/__init__.py @@ -72,7 +72,7 @@ async def _(msg: Bot.MessageSession): async def parse_shorturl(shorturl): try: async with httpx.AsyncClient() as client: - resp = await client.get(shorturl, allow_redirects=False) + resp = await client.get(shorturl, follow_redirects=False) target_url = resp.headers.get("Location") video = re.search(r"/video/([^/?]+)", target_url)