² Downloader frontends #
https://notes.bolha.tools/RJuX60GgT9GcvrPE8QJiVg?view
.
² YT-DLP wrapper #
1y (){
2
3 _host="${3:-yt}"
4 _conf="yt-dlp.conf"
5
6 printf '\n\t%s\n' "y NICHE URL [xh, xv, ..]"
7
8 if [[ -f /etc/"$_conf" ]]; then
9 echo "No $_conf";
10 elif [[ $(grep -v ozilla /etc/"$_conf") ]]; then
11 echo "no UA in $_conf"; fi
12
13 python3 /home/mks/bin/youtube-dl "$2" \
14 -o "$1"..$(cut -d/ -f5 <<< "$2")."${_host}"..'%(autonumber)02d.%(ext)s'
15}
last updated:
