From 5af63f2c0ead1c30f6c22ff1583ba5de99ffc758 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 11 Mar 2025 11:17:42 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=E6=8A=96=E9=9F=B3=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E9=93=BE=E6=8E=A5=E8=BD=AC=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- douyin_parser/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/douyin_parser/main.py b/douyin_parser/main.py index 0fc28d6..7dbb22d 100644 --- a/douyin_parser/main.py +++ b/douyin_parser/main.py @@ -129,13 +129,13 @@ class DouyinParser: if not video_url: raise DouyinParserError("无法获取视频地址") - self.send_xml_video(message, title, author, video_url) + self.send_xml_video(message, title, author, video_url,cover) 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): + 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""" @@ -153,7 +153,7 @@ class DouyinParser: - + {cover}