Merge pull request #6 from JefferyHcool/dev_jeff

feat(downloaders): 更新 Bilibili 和 YouTube 下载器的视频质量选择
This commit is contained in:
Jianwu Huang
2025-04-15 11:43:08 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -30,7 +30,7 @@ class YoutubeDownloader(Downloader, ABC):
output_path = os.path.join(output_dir, "%(id)s.%(ext)s")
ydl_opts = {
'format': 'bestaudio[ext=m4a]/bestaudio/best',
'format': 'best[height<=480][ext=mp4]/best[height<=480]/best',
'outtmpl': output_path,
'noplaylist': True,
'quiet': False,