Skip to content

Instantly share code, notes, and snippets.

@simonjenny
Created February 27, 2020 12:35
Show Gist options
  • Save simonjenny/30e00e9a8502dcabe14080764d90d4b0 to your computer and use it in GitHub Desktop.
Save simonjenny/30e00e9a8502dcabe14080764d90d4b0 to your computer and use it in GitHub Desktop.
Download all Videos in Youtube Playlist as Music Files
#!/bin/bash
/usr/bin/youtube-dl -i -f 'bestaudio[ext=m4a]' --write-thumbnail --embed-thumbnail \
--metadata-from-title "%(title)s" \
--metadata-from-title "%(artist)s" \
--output '/%(playlist_title)s/%(title)s/%(title)s.%(ext)s' \
--download-archive "$1.txt" \
--write-info-json \
-q https://www.youtube.com/playlist?list=$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment