TheAtomicAss

youtube-dl download script

Oct 28th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/bash
  2. set +x
  3.  
  4. while :
  5. do
  6. echo -e "\nChecking for youtube-dl updates\n"
  7. ./youtube-dl -U
  8. echo -e "\nRunning...\n"
  9. echo -e "Outputting errors to errors.txt\n"
  10. ./youtube-dl --config-location ./youtube-dl.conf `cat ./queue.txt` `grep -v "#" channels.txt` > errors.txt 2>&1
  11. echo -e "\nClearing Queue file..."
  12. echo " " > queue.txt
  13. echo -e "\nWaiting 1 hour before continuing"
  14. sleep 3600
  15. done
Add Comment
Please, Sign In to add comment