Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -n "$1" ]; then
  4. videourl=$1
  5. else
  6. videourl=$(pbpaste)
  7. fi
  8.  
  9. /usr/local/bin/youtube-dl --output 'Downloads/video.%(ext)s' --exec '/Users/mcnesium/Applications/VLC.app/Contents/MacOS/VLC {} && rm {}' $videourl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement