Skip to content

Instantly share code, notes, and snippets.

@vlados
Last active June 11, 2018 16:20
Show Gist options
  • Select an option

  • Save vlados/0c07752f874788b88b8c570856e8c0ca to your computer and use it in GitHub Desktop.

Select an option

Save vlados/0c07752f874788b88b8c570856e8c0ca to your computer and use it in GitHub Desktop.
yotube download playlist to mp3
playlists=( "list_id" )
for i in "${playlists[@]}"
do
youtube-dl --audio-format mp3 -i -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' --add-metadata -x --audio-quality 0 --prefer-ffmpeg 'https://www.youtube.com/playlist?list='${i} --format bestaudio --username USERNAME --password PASSWORD --download-archive downloaded.txt --no-post-overwrites -ciwx --geo-bypass --geo-bypass-country BG
done
@vlados
Copy link
Author

vlados commented Jun 11, 2018

Install youtube-dl by npm install -g youtube-dl and then just change list_id, USERNAME and PASSWORD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment