Created
February 27, 2020 12:35
-
-
Save simonjenny/30e00e9a8502dcabe14080764d90d4b0 to your computer and use it in GitHub Desktop.
Download all Videos in Youtube Playlist as Music Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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