v1ral_ITS

shell script to create batch.list for downloading

Sep 2nd, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. #!/bin/bash
  2. #+ ITS_ URL Video DL: batch version 1.0
  3.  
  4. # Dimensions
  5. height=200
  6. width=500
  7.  
  8. # Numerical batch list's
  9. yad --height=$height --width=$width --title "Numerical Answer batch#.list" --entry > /tmp/batch#.$$
  10. _number=`cat /tmp/batch#.$$`
  11.  
  12. # Batch list
  13. batch_list=batch$_number.list
  14.  
  15. # Main CMD Variables
  16. cmd_1=$(zenity --width=$width --height=$height --title "Add URL's To Batch List" --text "v1ral_ITS Download, batch verson" --forms --add-entry "URL:" --forms --add-entry "URL:" --add-entry "URL:" --add-entry "URL:" --add-entry "URL:"  --add-entry "URL:"  --add-entry "URL:"  --add-entry "URL:"  --separator='|')
  17.  
  18. # Start Main Dialog Program
  19. #+ ITS_
  20. echo "$cmd_1" | sed -e "s/|/\n/g" \
  21. | tee -a /home/v1ral/$batch_list
  22.  
  23. # Finish
  24. /home/v1ral/bin/ITS &&  sign
  25.  
  26. # Exit
  27. exit $?
Add Comment
Please, Sign In to add comment