Skip to content

Commit

Permalink
perf: 调整下载视频任务的默认参数值
Browse files Browse the repository at this point in the history
  • Loading branch information
pansong291 committed Dec 26, 2023
1 parent 959f25c commit 44fa24a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion download-videos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 对象
Expand Down
2 changes: 1 addition & 1 deletion download-videos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] }
Expand Down

0 comments on commit 44fa24a

Please sign in to comment.