调整抖音接口
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
enable = true
|
enable = true
|
||||||
|
|
||||||
# 发送模式: card(发送卡片) 或 file(下载并发送文件)
|
# 发送模式: card(发送卡片) 或 file(下载并发送文件)
|
||||||
download_mode = "file"
|
download_mode = "card"
|
||||||
|
|
||||||
# Http代理设置(用于获取真实链接发送卡片,如果家里有ipv6,可以设置为空)
|
# Http代理设置(用于获取真实链接发送卡片,如果家里有ipv6,可以设置为空)
|
||||||
# 格式: http://用户名:密码@代理地址:代理端口
|
# 格式: http://用户名:密码@代理地址:代理端口
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
|||||||
|
|
||||||
video_url = video_info.get('url', '')
|
video_url = video_info.get('url', '')
|
||||||
title = video_info.get('title', '无标题')
|
title = video_info.get('title', '无标题')
|
||||||
author = video_info.get('name', '未知作者')
|
author = video_info.get('author', '未知作者')
|
||||||
cover = video_info.get('cover', '')
|
cover = video_info.get('cover', '')
|
||||||
|
|
||||||
if not video_url:
|
if not video_url:
|
||||||
@@ -195,7 +195,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
|||||||
def _parse_douyin(self, url: str) -> Dict[str, Any]:
|
def _parse_douyin(self, url: str) -> Dict[str, Any]:
|
||||||
"""解析抖音链接"""
|
"""解析抖音链接"""
|
||||||
try:
|
try:
|
||||||
api_url = "https://api.52vmy.cn/api/video/jx?url="
|
api_url = "https://api.pearktrue.cn/api/video/douyin/?url="
|
||||||
clean_url = self._clean_url(url)
|
clean_url = self._clean_url(url)
|
||||||
api_url = api_url + clean_url
|
api_url = api_url + clean_url
|
||||||
response = requests.get(api_url, timeout=30)
|
response = requests.get(api_url, timeout=30)
|
||||||
|
|||||||
Reference in New Issue
Block a user