帅哥视频优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user