加入视频下载发送操作
This commit is contained in:
@@ -181,6 +181,7 @@ class DouyinParser:
|
||||
|
||||
self.wcf.send_rich_text("bot", "gh_11", title[:30], f"{title[:30]} - {author[:10]}", video_url, cover,
|
||||
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.wcf.send_file(path, (message.roomid if message.from_group() else message.sender))
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user