Skip to content

Instantly share code, notes, and snippets.

@devdoomari3
Created July 27, 2018 08:14
Show Gist options
  • Save devdoomari3/5f25b8f5842878e05ef553eeaf374d69 to your computer and use it in GitHub Desktop.
Save devdoomari3/5f25b8f5842878e05ef553eeaf374d69 to your computer and use it in GitHub Desktop.
add youtube-dl playlist-index on zsh
# usage: youtube-dl-playlist <youtube-playlist-url>
function youtube-dl-playlist() {
youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment