y () { _host="${3:-yt}" _conf="yt-dlp.conf"
printf '\n\t%s\n' "y NICHE URL [xh, xv, ..]"
if [[ -f /etc/"$_conf" ]]; then
echo "No $_conf";
elif [[ $(grep -v ozilla /etc/"$_conf") ]]; then
echo "no UA in $_conf"; fi
python3 /home/mks/bin/youtube-dl "$2" \
-o "$1"..$(cut -d/ -f5 <<< "$2")."${_host}"..'%(autonumber)02d.%(ext)s'
}
last updated:
