From 3e4b472d9b6f2e0c7fd5149db78c2b9dffbe4340 Mon Sep 17 00:00:00 2001 From: Jackson Humphrey Date: Fri, 15 Nov 2024 06:21:14 -0600 Subject: [PATCH] yt-dlp: add --playlist-items example (#14808) --- pages/common/yt-dlp.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/yt-dlp.md b/pages/common/yt-dlp.md index 5e5cec100..65fd3e31c 100644 --- a/pages/common/yt-dlp.md +++ b/pages/common/yt-dlp.md @@ -25,6 +25,10 @@ `yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"` +- Download only the second, fourth, fifth, sixth, and last items in a playlist (the first item is 1, not 0): + +`yt-dlp --playlist-items 2,4:6,-1 "{{https://youtube.com/playlist?list=PLbzoR-pLrL6pTJfLQ3UwtB-3V4fimdqnA}}"` + - Download all playlists of a YouTube channel/user keeping each playlist in a separate directory: `yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"`