mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-07 05:32:52 +08:00
feat(bilibili_downloader): 更新视频下载格式选择
- 将音频下载格式更改为视频+音频组合格式 - 新格式优先选择bv*+ba,然后是bestvideo+bestaudio,最后是best - 这个改动可以提高下载视频的质量,并确保视频和音频同步
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user