Update 2025-08-31 19:39 OpenBSD/amd64-t14
This commit is contained in:
21
.bin/ytdl
21
.bin/ytdl
@@ -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" \
|
||||
"$@"
|
||||
|
||||
Reference in New Issue
Block a user