Advertisement
Guest User

youtube-dl script

a guest
Nov 23rd, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #!/bin/sh
  2. one="1"
  3. answer=''
  4. tput clear
  5. tput cup 05 10
  6. echo "Give the Batch File .txt File: \c"
  7. # Here you paste the YT-video-URL by ctrl+shift+V
  8. read answer
  9. # The follwing command will display a list of video quality options to choose from
  10. #youtube-dl -l --batch-file=$answer
  11. #echo
  12. # Here you give the number shown in first column as per your choice
  13. #echo "Select Quality (Choose a number): \c"
  14. #read qual
  15. # If you don't want to download and quit the shell, give 99
  16. if [ $one -ne 2 ]
  17. then
  18. youtube-dl --extract-audio --audio-format mp3 --audio-quality 160K -l --batch-file=$answer
  19. #youtube-dl -f $qual -o "/home/d_brasco/Music/Yootube Videos/%(title)s.%(ext)s" $answer
  20. else
  21. exit 0
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement