Update 2025-08-31 19:39 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2025-08-31 19:39:39 +02:00
parent ff04acca3a
commit a074d5b67d
5 changed files with 30 additions and 10 deletions

View File

@@ -5,9 +5,22 @@ then
exit 2
fi
mkdir -p "$HOME/ytdl/$1/"
update-ksh-completions &
if [ ! -d "$HOME/ytdl/$1/" ]
then
mkdir -p "$HOME/ytdl/$1/"
update-ksh-completions
. $HOME/.kshrc.autocomplete
fi
cd "$HOME/ytdl/$1/"
shift
yt-dlp --cookies-from-browser chromium "$@"
yt-dlp \
--cookies-from-browser firefox \
--user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0" \
--preset-alias mp4 \
--embed-metadata \
--embed-subs \
--sub-langs "en.*" \
--write-auto-subs \
--restrict-filenames \
-o "%(uploader)s/%(playlist)s/%(title)s.%(ext)s" \
"$@"