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

yt-dlp: add --playlist-items example (#14808)

This commit is contained in:
Jackson Humphrey 2024-11-15 06:21:14 -06:00 committed by GitHub
parent d6639bba12
commit 3e4b472d9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}"`