Skip to content

Instantly share code, notes, and snippets.

@shahjugal
Last active August 20, 2022 05:59
Show Gist options
  • Save shahjugal/39fdefeef9988634125d2cbff064802a to your computer and use it in GitHub Desktop.
Save shahjugal/39fdefeef9988634125d2cbff064802a to your computer and use it in GitHub Desktop.
Downlaod Youtube playlist with yt-dlp
## HOW TO DOWNLOAD Youtube Videos from playlist on a mac?.
## list.txt file should contain a link of playlist.
## To Get binary visit https://github.com/yt-dlp/yt-dlp on readme see alternatives downlaod mac legacy binary
## Also get binary of ffmepg for conversion.
## Place it in folder in which we need to download video and then just do chmod +x binary_name.
## OR even Better put it in /usr/local/bin.
sudo ./binary_name -a list.txt --no-check-certificate -o "%(playlist_index)s-%(title)s.%(ext)s"
## To Download And Convert it to mp4 use this arguement
-S res,ext:mp4:m4a --recode mp4
## For Downloading max quality audio
yt-dlp -f 'ba' -x --audio-format mp3 -a list.txt -o '%(id)s.%(ext)s' --no-check-certificate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment