Skip to content

Instantly share code, notes, and snippets.

@kevinlipe
Last active January 10, 2017 21:54
Show Gist options
  • Save kevinlipe/318cef0aabfd5b5375d8 to your computer and use it in GitHub Desktop.
Save kevinlipe/318cef0aabfd5b5375d8 to your computer and use it in GitHub Desktop.
ytsnatch
#!/bin/sh
# ytsnatch, a wrapper around youtube-dl, from TJ Luoma (http://luo.ma)
# this used to have a FOR loop that wrapped youtube-dl and iterated over formats.
youtube-dl -f bestvideo+bestaudio/best --restrict-filenames --no-overwrites \
-o "~/Downloads/%(title)s-%(id)s.%(ext)s" "$@" && FOUND=yes # to use with burninator.scpt, this path has to be hard-coded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment