mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-06 20:42:52 +08:00
feat(downloaders): 更新 Bilibili 和 YouTube 下载器的视频质量选择
- Bilibili 下载器:将视频格式选择更改为优先下载 MP4 格式,且分辨率不超过 480p - YouTube 下载器:将视频格式选择更改为优先下载 MP4 格式,且分辨率不超过 480p
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': 'bv*[ext=mp4]/bestvideo+bestaudio/best',
|
||||
'format': 'best[height<=480][ext=mp4]/best[height<=480]/best',
|
||||
'outtmpl': output_path,
|
||||
'noplaylist': True,
|
||||
'quiet': False,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user