ytDownloader 360 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. #Download youtube video/audio with desired quality
  3. #accept both full URLs or just the id such as AQcQgfvfF1M
  4. read -p 'what do you wanna download, audio or video?' DEST
  5. if [ $DEST='audio' ]; then
  6. cd ~/mus
  7. else
  8. cd ~/mus/vid
  9. fi
  10. youtube-dl -F $1
  11. read -p 'which format?' FORMAT
  12. youtube-dl -f $FORMAT $1 --embed-subs --add-metadata -k