1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 01:02:53 +08:00

[README.md] Document the 'duration' field in the output template (#6929)

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-09-25 22:02:48 +02:00
parent 4866b72eb2
commit 4c917d0314

View File

@ -281,6 +281,7 @@ The `-o` option allows users to indicate a template for the output file names. T
- `playlist`: The sequence will be replaced by the name or the id of the playlist that contains the video. - `playlist`: The sequence will be replaced by the name or the id of the playlist that contains the video.
- `playlist_index`: The sequence will be replaced by the index of the video in the playlist padded with leading zeros according to the total length of the playlist. - `playlist_index`: The sequence will be replaced by the index of the video in the playlist padded with leading zeros according to the total length of the playlist.
- `format_id`: The sequence will be replaced by the format code specified by `--format`. - `format_id`: The sequence will be replaced by the format code specified by `--format`.
- `duration`: The sequence will be replaced by the length of the video in seconds.
The current default template is `%(title)s-%(id)s.%(ext)s`. The current default template is `%(title)s-%(id)s.%(ext)s`.