dotfiles/.bin/ytdl
2024-12-25 21:13:51 +01:00

13 lines
210 B
Bash
Executable File

#!/bin/sh -e
if [ -z $2 ]
then
echo "First argument should be a category."
exit 2
fi
mkdir -p "$HOME/ytdl/$1/"
update-ksh-completions &
cd "$HOME/ytdl/$1/"
yt-dlp --cookies-from-browser chromium "$2"