mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
30f356a2c7
@ -110,10 +110,10 @@ async def _(event: GroupMessageEvent):
|
|||||||
vd_info = await video.get_video_base_info(msg)
|
vd_info = await video.get_video_base_info(msg)
|
||||||
elif "av" in msg:
|
elif "av" in msg:
|
||||||
index = msg.find("av")
|
index = msg.find("av")
|
||||||
if len(msg[index + 2 :]) >= 9:
|
if len(msg[index + 2 :]) >= 1:
|
||||||
msg = msg[index + 2 : index + 11]
|
msg = msg[index + 2 : index + 11]
|
||||||
if is_number(msg):
|
if is_number(msg):
|
||||||
url = f"https://www.bilibili.com/video/{msg}"
|
url = f"https://www.bilibili.com/video/av{msg}"
|
||||||
vd_info = await video.get_video_base_info('av' + msg)
|
vd_info = await video.get_video_base_info('av' + msg)
|
||||||
elif "https://b23.tv" in msg:
|
elif "https://b23.tv" in msg:
|
||||||
url = "https://" + msg[msg.find("b23.tv"): msg.find("b23.tv") + 14]
|
url = "https://" + msg[msg.find("b23.tv"): msg.find("b23.tv") + 14]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user