Guest User

Untitled

a guest
Mar 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import os
  2.  
  3. def main():
  4. songs = []
  5. userIn = "5"
  6. while(userIn != ""):
  7. userIn = input("Youtube URL: ")
  8. if(userIn == ""):
  9. break
  10. songs.append(userIn)
  11. for s in songs:
  12. os.system('youtube-dl -x --audio-format mp3 ' + s)
  13. print("Program Complete!")
  14.  
  15. if __name__ == '__main__':
  16. main()
Add Comment
Please, Sign In to add comment