current commit
220723.1 · bin: I guess yt-dlp is the new kid on the block
#!/bin/sh

cmd=
for x in yt-dlp youtube-dl; do
  if cmd-exists "$x"; then
    cmd="$x"
    break
  fi
done
if [ -z "$cmd" ]; then
  echo "could not find any youtube downloader program" >&2
  exit 1
fi
exec "$cmd" --extract-audio --audio-format mp3 "$@"