From 44fa24a6ed4e32883bb11d9e8bb72d01122847d6 Mon Sep 17 00:00:00 2001 From: pansong291 Date: Tue, 26 Dec 2023 20:51:28 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E4=BB=BB=E5=8A=A1=E7=9A=84=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download-videos/README.md | 2 +- download-videos/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/download-videos/README.md b/download-videos/README.md index cf622b4..e3488a0 100644 --- a/download-videos/README.md +++ b/download-videos/README.md @@ -33,7 +33,7 @@ | 参数 | 说明 | 默认值 | | ---- | ---- | ---- | | --yes-playlist | 指定一个播放列表。参见 [Video Selection](https://github.com/yt-dlp/yt-dlp#video-selection) | | -| --format | 指定下载的媒体格式。参见 [Video Format Options](https://github.com/yt-dlp/yt-dlp#video-format-options) | `bestvideo+bestaudio` | +| --format | 指定下载的媒体格式。参见 [Video Format Options](https://github.com/yt-dlp/yt-dlp#video-format-options) | `best*` | | --compat-options | 指定合并选项,比如 `no-direct-merge`。参见 [General Options](https://github.com/yt-dlp/yt-dlp#general-options) | | | --recode-video | 将视频转码为其他格式,可用值:`avi` `flv` `gif` `mkv` `mov` `mp4` `webm` `aac` `aiff` `alac` `flac` `m4a` `mka` `mp3` `ogg` `opus` `vorbis` `wav`。参见 [Post-Processing Options](https://github.com/yt-dlp/yt-dlp#post-processing-options) | | - `transfer` 对象 diff --git a/download-videos/index.js b/download-videos/index.js index 9d5ba92..7344134 100644 --- a/download-videos/index.js +++ b/download-videos/index.js @@ -13,7 +13,7 @@ const commandSupplier = { ytDlp() { const availableOptions = ['--batch-file', '--yes-playlist', '--format', '--compat-options', '--recode-video'] const options = { - '--format': 'bestvideo+bestaudio', + '--format': 'best*', '--output': 'downloads/%(title)s_%(id)s.%(ext)s' } const param = { hasBatchFile: false, hasPlaylist: false, urls: [] }