Guest User

Untitled

a guest
Nov 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import subprocess
  2. import time
  3.  
  4. time_to_wait = 500
  5. url = ""
  6.  
  7.  
  8. command = """youtube-dl --download-archive downloaded.txt --no-post-overwrites -f bestvideo+bestaudio -i -o %(playlist_index)s-%(title)s.%(ext)s""" + " {}".format(url)
  9.  
  10. while True:
  11.  
  12. subprocess.run(command)
  13. time.sleep(time_to_wait)
Add Comment
Please, Sign In to add comment