#!/usr/bin/env bash set -eu playlistURL="https://www.youtube.com/watch?list=PLJtitKU0CAehVwewqUdsYrDqg9Kp1jQvj" playlistJSON=`yt-dlp "$playlistURL" --flat-playlist -J` urls=`echo "$playlistJSON" | jq -r '.entries[].url'` echo "$urls" | xargs -P 20 -I % youtube-dl "%" --write-description --skip-download --restrict-filenames --no-post-overwrite --no-overwrites