feature:抖音分享链接转视频
This commit is contained in:
@@ -125,6 +125,7 @@ class DouyinParser:
|
||||
video_url = video_info.get('video', '')
|
||||
title = video_info.get('title', '无标题')
|
||||
author = video_info.get('name', '未知作者')
|
||||
|
||||
if not video_url:
|
||||
raise DouyinParserError("无法获取视频地址")
|
||||
self.send_xml_video(message, title, author, video_url)
|
||||
@@ -192,7 +193,7 @@ class DouyinParser:
|
||||
|
||||
data = self.wcf.query_sql('MSG0.db', "SELECT * FROM MSG where type = 49 limit 1")
|
||||
self.wcf.query_sql('MSG0.db',
|
||||
f"""UPDATE MSG SET CompressContent = x'{compressed_data}', BytesExtra=x'', type=49, SubType=3,
|
||||
f"""UPDATE MSG SET CompressContent = x'{compressed_data}', BytesExtra=x'', type=49, SubType=5,
|
||||
IsSender=0, TalkerId=2 WHERE MsgSvrID={data[0]['MsgSvrID']}"""
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user