notes/scripts/ivdl-w
2025-04-21 07:19:58 -07:00

7 lines
223 B
Bash
Executable file

#!/usr/bin/env bash
video_id=$(echo "$1" | grep -oE 'v=([a-zA-Z0-9_-]{11})' | cut -d= -f2)
youtube_url="https://www.youtube.com/watch?v=$video_id"
yt-dlp "best*" --sponsorblock-remove all --write-auto-sub "$youtube_url"