first commit

This commit is contained in:
Jefferyhcool
2025-04-13 17:44:54 +08:00
commit 0e0b8da317
112 changed files with 4397 additions and 0 deletions
+15
View File
@@ -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 # ✅ 新增字段:可选视频文件路径