Skip to content

Instantly share code, notes, and snippets.

@bafflingscience
Last active April 7, 2020 20:07
Show Gist options
  • Select an option

  • Save bafflingscience/c6c2a1e3b29da5ec1b073e98dfd3a716 to your computer and use it in GitHub Desktop.

Select an option

Save bafflingscience/c6c2a1e3b29da5ec1b073e98dfd3a716 to your computer and use it in GitHub Desktop.
youtube-dl - download playlist, output to existing directory, create directory, output files to new directory, index playlist videos.
#! /bin/bash
ytdl() {
cd /Volumes/fourtb/Video/YouTube;
/usr/local/bin/youtube-dl -i -o "%(playlist_index)s-%(title)s.%(ext)s" --yes-playlist --playlist-start 1 -f "mp4" $1
}
ytdl $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment