测试xml视频内容
This commit is contained in:
@@ -13,7 +13,7 @@ from base.plugin_common.plugin_interface import PluginStatus
|
||||
from utils.decorator.plugin_decorators import plugin_stats_decorator
|
||||
from utils.robot_cmd.robot_command import Feature, PermissionStatus, GroupBotManager
|
||||
from wechat_ipad import WechatAPIClient
|
||||
from wechat_ipad.models.appmsg_xml import LINK_XML_NORMAL
|
||||
from wechat_ipad.models.appmsg_xml import LINK_XML_NORMAL, VIDEO_XML_MESSAGE
|
||||
|
||||
|
||||
class DouyinParserError(Exception):
|
||||
@@ -162,8 +162,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
||||
return False, "下载视频失败"
|
||||
else:
|
||||
# 发送卡片
|
||||
xml_content = f"{LINK_XML_NORMAL}".format(title=title,
|
||||
des=author,
|
||||
xml_content = f"{VIDEO_XML_MESSAGE}".format(title=title,
|
||||
url=video_url,
|
||||
thumburl=cover
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user