Archived
1
0
Fork 0

Update __init__.py

阿姨我啊,没有钱了
This commit is contained in:
yzhh 2023-07-03 13:31:12 +08:00
parent 3a7e95d7ce
commit 0f8f52d0d0

View file

@ -42,7 +42,7 @@ async def _(msg: Bot.MessageSession):
await get_info(msg, url, get_detail=False)
@bili.handle(re.compile(r"https?://(?:www|m).bilibili\.com(?:/video|)/(av\d+|BV[A-Za-z0-9]{10})(?:\?.*?$|$)"), mode="M",
@bili.handle(re.compile(r"https?://(?:www|m).bilibili\.com(?:/video|)/(av\d+|BV[A-Za-z0-9]{10})(?:\?.*?|)$"), mode="M",
desc="{bilibili.help.regex.url}")
async def _(msg: Bot.MessageSession):
video = msg.matched_msg.group(1)
@ -54,7 +54,7 @@ async def _(msg: Bot.MessageSession):
await get_info(msg, url, get_detail=False)
@bili.handle(re.compile(r"https?://b23\.tv/(av\d+|BV[A-Za-z0-9]{10}|[A-Za-z0-9]{7})(?:\?.*?$|$)"), mode="M",
@bili.handle(re.compile(r"https?://b23\.tv/(av\d+|BV[A-Za-z0-9]{10}|[A-Za-z0-9]{7})(?:\?.*?|)$"), mode="M",
desc="{bilibili.help.regex.shorturl}")
async def _(msg: Bot.MessageSession):
res = msg.matched_msg