download-playlist.sh 446 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. PLAYLIST=${1:-"PLD5lYPY-uZpq7x2zRIiULo2oZ-tWs2lPx"}
  3. DIR=${2:-"media"}
  4. mkdir -p $DIR
  5. cd $DIR
  6. youtube-dl \
  7. --verbose \
  8. --playlist-start 1 \
  9. --playlist-end 1 \
  10. --add-metadata \
  11. --no-mark-watched \
  12. --yes-playlist \
  13. --write-all-thumbnails \
  14. --ignore-errors \
  15. --all-subs \
  16. --no-call-home \
  17. --restrict-filenames \
  18. "https://www.youtube.com/playlist?list=$PLAYLIST"
  19. # very large and detailed
  20. # --write-info-json \