feat(bilibili_downloader): 更新视频下载格式选择

- 将音频下载格式更改为视频+音频组合格式
- 新格式优先选择bv*+ba,然后是bestvideo+bestaudio,最后是best
- 这个改动可以提高下载视频的质量,并确保视频和音频同步
This commit is contained in:
Jefferyhcool
2025-04-15 22:07:09 +08:00
parent 61a0c08df8
commit 6c21aa2055

View File

@@ -69,7 +69,7 @@ class BilibiliDownloader(Downloader, ABC):
output_path = os.path.join(output_dir, "%(id)s.%(ext)s")
ydl_opts = {
'format': 'bestaudio[ext=mp4]/bestaudio/best',
'format': 'bv*+ba/bestvideo+bestaudio/best',
'outtmpl': output_path,
'noplaylist': True,
'quiet': False,