feat: 新增平台
This commit is contained in:
@@ -58,13 +58,14 @@ class TikTokParser(BaseParser):
|
||||
|
||||
title = video_info.get("desc", "")
|
||||
|
||||
author = video_info.get("author", {})
|
||||
author_name = author.get("nickname", "")
|
||||
author_signature = author.get("signature", "")
|
||||
description = f"Author: {author_name}"
|
||||
if author_signature:
|
||||
description += f" | {author_signature}"
|
||||
# 提取作者信息
|
||||
author_info = video_info.get("author", {})
|
||||
author_name = author_info.get("nickname", "")
|
||||
author_signature = author_info.get("signature", "")
|
||||
|
||||
return self._normalize_response(cover, video_url, title, description)
|
||||
# 简介使用作者签名
|
||||
description = author_signature or ""
|
||||
|
||||
return self._normalize_response(cover, video_url, title, description, author_name)
|
||||
except Exception as e:
|
||||
raise Exception(f"数据提取失败: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user