Skip to content

Instantly share code, notes, and snippets.

@cdecl
Last active December 9, 2023 12:47
Show Gist options
  • Save cdecl/a6d68b4db88c30ae7f4eac0d343a8166 to your computer and use it in GitHub Desktop.
Save cdecl/a6d68b4db88c30ae7f4eac0d343a8166 to your computer and use it in GitHub Desktop.
#!/bin/bash
# BASEDIR=$(dirname $0)
# ./yt-dlp -v -f bestvideo+bestaudio $1
#$BASEDIR/yt-dlp -v -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' $1
# yt-dlp -v -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' $1
yt-dlp -x --yes-playlist --audio-format mp3 -o '%(playlist_index)02d %(title)s.%(ext)s' $1
#!/bin/bash
# BASEDIR=$(dirname $0)
# ./yt-dlp -v -f bestvideo+bestaudio $1
#$BASEDIR/yt-dlp -v -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' $1
# yt-dlp -v -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' $1
# yt-dlp -x --split-chapters --audio-format mp3 -o '%(title)s/%(title)s.%(ext)s' $1
yt-dlp -x --split-chapters --audio-format mp3 -o '%(title)s.%(ext)s' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment