Advertisement
Guest User

YOUTUBE-DL URL TO MP3

a guest
Nov 11th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' Requires: youtube-dl.exe, ffmpeg.exe and ffprobe.exe. '
  2. ' Update youtube-dl and then run this script. Type: youtube-dl.exe --update '
  3.  
  4. Do
  5. set wsite = createobject("wscript.shell")
  6. website = inputbox ("Paste URL into the field.","MP3")
  7.  
  8. If IsEmpty(website) Then
  9. WScript.Quit
  10.  
  11. ElseIf website = "" Then
  12. MsgBox "Please do not leave field blank."
  13.  
  14. Else
  15. wsite.run "cmd /c youtube-dl -i --extract-audio --audio-format mp3 " & website & " -o AUDIOS/%(title)s.%(ext)s"
  16. End If
  17. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement