Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf committed Jan 15, 2025
1 parent ca97c44 commit 3c75196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bilibili/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3c75196

Please sign in to comment.