1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

youtube-dl: extend the custom filenames example (#6434)

Extend the custom filenames example to also include the playlist_index
(a useful way to keep the downloaded playlist sorted).
This commit is contained in:
Manuel Haussmann 2021-09-01 11:57:21 +00:00 committed by GitHub
parent 56b2de928c
commit 2945238a01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@
- Download video(s) as MP4 files with custom filenames:
`youtube-dl --format {{mp4}} -o "{{%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s}}" '{{url}}'`
`youtube-dl --format {{mp4}} -o "{{%(playlist_index)s-%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s}}" '{{url}}'`
- Download a particular language's subtitles along with the video: