diff --git a/scripts/ivdl-w b/scripts/ivdl-w new file mode 100755 index 00000000..90bd1da0 --- /dev/null +++ b/scripts/ivdl-w @@ -0,0 +1,7 @@ +#!/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"