加入视频下载发送操作

This commit is contained in:
liuwei
2025-03-11 13:21:43 +08:00
parent e27a67d003
commit c2085e815a

View File

@@ -183,6 +183,7 @@ class DouyinParser:
message.roomid)
self.LOG.info(f"video_url:{video_url}, title:{title}, author:{author}, cover:{cover}")
path = self._download_stream(video_url, "down_load_dir/video.mp4")
self.LOG.info(f"video_abs_url:{path}")
self.wcf.send_file(path, (message.roomid if message.from_group() else message.sender))
except Exception as e:
self.LOG.error("[抖音] 解析过程发生未知错误: %s\n%s", str(e), traceback.format_exc())