fix
This commit is contained in:
parent
a8804f0c2d
commit
698001985a
2 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@ async def _(msg: Bot.MessageSession, bid: str, get_detail=False):
|
|||
else:
|
||||
return await msg.finish(msg.locale.t('bilibili.message.error.invalid'))
|
||||
res = await get_video_info(msg, query, get_detail)
|
||||
if not res:
|
||||
await msg.finish(msg.locale.t('message.cooldown', time=int(c), cd_time='30'))
|
||||
if res:
|
||||
await msg.finish(msg.locale.t('message.cooldown', time=int(res), cd_time='30'))
|
||||
|
||||
|
||||
@bili.regex(re.compile(r"av(\d+)", flags=re.I), mode='M', desc="{bilibili.help.regex.av}")
|
||||
|
|
|
@ -73,7 +73,7 @@ async def get_video_info(msg: Bot.MessageSession, query, get_detail=False):
|
|||
qc.reset()
|
||||
await msg.finish([Image(pic), Url(video_url), Plain(output)])
|
||||
else:
|
||||
return None
|
||||
return c
|
||||
|
||||
|
||||
def format_num(number):
|
||||
|
|
Reference in a new issue