#!/bin/sh

# select two: 1+2
# ideally want to select av1; much smaller!
yt-dlp -F --quiet "$1" | grep -Ev '(storyboard|(video|audio) only)' \
  | sed -E 's/\|/│/g; 2s/-/─/g; s/[~0-9.]+[MG]iB/\x1b[1m\0\x1b[0m/'
printf '%s' 'Which? '
read -r -- s
yt-dlp -f "${s}" "$1"
