feat: 新增平台
This commit is contained in:
@@ -44,11 +44,12 @@ class BaseParser(ABC):
|
||||
except requests.RequestException as e:
|
||||
raise Exception(f"请求失败: {str(e)}")
|
||||
|
||||
def _normalize_response(self, cover: str, video_url: str, title: str, description: str) -> Dict:
|
||||
def _normalize_response(self, cover: str, video_url: str, title: str, description: str, author: str = "") -> Dict:
|
||||
"""标准化返回数据"""
|
||||
return {
|
||||
"cover": cover or "",
|
||||
"video_url": video_url or "",
|
||||
"title": title or "",
|
||||
"description": description or ""
|
||||
"description": description or "",
|
||||
"author": author or ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user