From 38b5478df17f5ea76f4973b6160d0d6c805d24ff Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 11 Mar 2025 11:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- douyin_parser/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/douyin_parser/main.py b/douyin_parser/main.py index 7dbb22d..cbf14a1 100644 --- a/douyin_parser/main.py +++ b/douyin_parser/main.py @@ -129,13 +129,16 @@ class DouyinParser: if not video_url: raise DouyinParserError("无法获取视频地址") - self.send_xml_video(message, title, author, video_url,cover) + + # self.send_xml_video(message, title, author, video_url,cover) + self.wcf.send_rich_text("bot", "gh_11", title[:30], f"{title[:30]} - {author[:10]}", video_url, cover, + message.roomid) except Exception as e: self.LOG.error("[抖音] 解析过程发生未知错误: %s\n%s", str(e), traceback.format_exc()) raise DouyinParserError(f"未知错误: {str(e)}") return - def send_xml_video(self, message: WxMsg, title, author, video_url,cover): + def send_xml_video(self, message: WxMsg, title, author, video_url, cover): video_title = f"{title[:30]} - {author[:10]}" if author else title[:40], xml_message = f"""