mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-09-05 15:46:48 +08:00
first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
|
||||
|
||||
@dataclass
|
||||
class AudioDownloadResult:
|
||||
file_path: str # 本地音频路径
|
||||
title: str # 视频标题
|
||||
duration: float # 视频时长(秒)
|
||||
cover_url: Optional[str] # 视频封面图
|
||||
platform: str # 平台,如 "bilibili"
|
||||
video_id: str # 唯一视频ID
|
||||
raw_info: dict # yt-dlp 的原始 info 字典
|
||||
video_path: Optional[str] = None # ✅ 新增字段:可选视频文件路径
|
||||
|
||||
Reference in New Issue
Block a user