Skip to content

Instantly share code, notes, and snippets.

@filmgirl
Last active April 16, 2024 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filmgirl/7e632e3d4848c390d24317a66e102611 to your computer and use it in GitHub Desktop.
Save filmgirl/7e632e3d4848c390d24317a66e102611 to your computer and use it in GitHub Desktop.
Grab thumbnail from a YouTube URL and save to whatever folder you're in
## Put in your .zshrc or .bashrc file, make sure yt-dlp and ffmpeg are already installed
thumb() {
yt-dlp --ignore-errors --write-thumbnail --skip-download $1
}
## YouTube Thumbnail Custom Output and Save (put in your .zshrc or .bashrc file, make sure yt-dlp and ffmpeg are already installed
thumb() {
yt-dlp --ignore-errors --write-thumbnail --convert-thumbnail png --skip-download -o '~/Downloads/%(title)s.%(ext)s' $1 $2 $3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment