debug 视频
This commit is contained in:
@@ -130,7 +130,8 @@ class VideoPlugin(MessagePluginInterface):
|
||||
|
||||
# 发送视频
|
||||
self.LOG.info(f"准备发送视频: {file_abspath}, 首帧: {first_frame}")
|
||||
result = await self.bot.send_video_message((roomid if roomid else sender), file_abspath, first_frame)
|
||||
result = await self.bot.send_video_message((roomid if roomid else sender), Path(file_abspath),
|
||||
Path(first_frame))
|
||||
self.LOG.info(f"发送视频结果: {result}")
|
||||
return True, "发送成功"
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ class MessageMixin(WechatAPIClientBase):
|
||||
image_base64 = base64.b64encode(f.read()).decode()
|
||||
else:
|
||||
raise ValueError("image should be str, bytes, or path")
|
||||
|
||||
self.logging.debug(f"images_base64:{image_base64}")
|
||||
# 打印预估时间,300KB/s
|
||||
predict_time = int(file_len / 1024 / 300)
|
||||
self.logging.info("开始发送视频: 对方wxid:{} 视频base64略 图片base64略 预计耗时:{}秒", wxid, predict_time)
|
||||
|
||||
Reference in New Issue
Block a user