Skip to content

Instantly share code, notes, and snippets.

@duanemoody
Created February 6, 2023 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duanemoody/f00065a191ea4a76cbe1db35061a6930 to your computer and use it in GitHub Desktop.
Save duanemoody/f00065a191ea4a76cbe1db35061a6930 to your computer and use it in GitHub Desktop.
Add this to your .bashrc ir ,bash_profile
# yt-pl [playlist url]
yt-pl() {
yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' \
--merge-output-format mp4 --download-archive videos.txt "$1" \
-o '%(playlist_title)s [%(playlist_id)s]/%(playlist_index)03d %(title)s [%(id)s].%(ext)s'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment