调整抖音接口
This commit is contained in:
@@ -140,7 +140,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
||||
|
||||
video_url = video_info.get('url', '')
|
||||
title = video_info.get('title', '无标题')
|
||||
author = video_info.get('name', '未知作者')
|
||||
author = video_info.get('author', '未知作者')
|
||||
cover = video_info.get('cover', '')
|
||||
|
||||
if not video_url:
|
||||
@@ -195,7 +195,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
||||
def _parse_douyin(self, url: str) -> Dict[str, Any]:
|
||||
"""解析抖音链接"""
|
||||
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)
|
||||
api_url = api_url + clean_url
|
||||
response = requests.get(api_url, timeout=30)
|
||||
|
||||
Reference in New Issue
Block a user