Skip to content

Instantly share code, notes, and snippets.

@dtsdwarak
Last active August 28, 2022 19:59
Show Gist options
  • Save dtsdwarak/b65ce205a59d95bd0739fcdb2f33dfec to your computer and use it in GitHub Desktop.
Save dtsdwarak/b65ce205a59d95bd0739fcdb2f33dfec to your computer and use it in GitHub Desktop.
youtube-dl shortcuts
#! /bin/bash
# Download an entire channel
# https://askubuntu.com/a/856913
youtube-dl \
-f best \
-ciw \
--playlist-reverse \
-o "%(playlist_index)s - %(title)s.%(ext)s - %(channel)s" \
-v <youtube-channel-url>
# To download a playlist
youtube-dl \
-f best \
-ciw \
--yes-playlist \
-o "%(playlist_index)s - %(title)s.%(ext)s" \
'<youtube-playlist-url>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment