#!/bin/sh inp="$1" [ -z "$inp" ] && inp="$(ytlink)" [ "$inp" ] || exit 1 >&2 printf "inp: %s\n" "$inp" herbe "_ytclipo" "*$inp" || : yt-dlp "$inp" \ --restrict-filenames \ --embed-chapters \ -S "res:1080" \ -P "$HOME/vids/youtube/" \ -o "%(channel)s/%(title)s.%(ext)s" herbe "_ytclipo" "finished downloading." || :