From 2945238a01c6763cc2a765e519cb91a0f229e60e Mon Sep 17 00:00:00 2001 From: Manuel Haussmann Date: Wed, 1 Sep 2021 11:57:21 +0000 Subject: [PATCH] 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). --- pages/common/youtube-dl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/youtube-dl.md b/pages/common/youtube-dl.md index d87747676a..9aa3ee7e30 100644 --- a/pages/common/youtube-dl.md +++ b/pages/common/youtube-dl.md @@ -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: