From d9d41a29ba3ca44c64395d312ea394229afb0b0a Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 28 May 2025 09:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=85=E5=93=A5=E8=A7=86=E9=A2=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/video_man/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/video_man/main.py b/plugins/video_man/main.py index cf6f555..c0299f2 100644 --- a/plugins/video_man/main.py +++ b/plugins/video_man/main.py @@ -105,7 +105,7 @@ class VideoManPlugin(MessagePluginInterface): try: # 下载视频 - file_abspath, first_frame = await self._download_video("https://api.guiguiya.com/api/video/fuji?type=json") + file_abspath, first_frame = await self._download_video("https://api.52vmy.cn/api/video/boy?type=json") # FIXME 需要换成web容器地址。否则无法获取。 if not file_abspath: await self.bot.send_text_message((roomid if roomid else sender), f"\n❌视频下载失败,请稍后再试", @@ -143,7 +143,7 @@ class VideoManPlugin(MessagePluginInterface): return None data = await response.json() - video_url = data.get("url") + video_url = data.get("data").get("video") if not video_url: self.LOG.error("API响应中没有找到视频URL") return None