From: Ian Kelling Date: Wed, 26 Jul 2023 02:30:00 +0000 (-0400) Subject: some nice ytdl related commands X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=ff877dc70b2f4f5622bf7dad3441c633b9ea1168;p=distro-setup some nice ytdl related commands --- diff --git a/brc2 b/brc2 index 0432e3a..d51add8 100644 --- a/brc2 +++ b/brc2 @@ -3840,6 +3840,22 @@ amrmall() { amoffice silence expire $(amoffice silence query -q) } + +youtube-dl-update() { + sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl + sudo chmod a+rx /usr/local/bin/youtube-dl +} + +# https://github.com/yt-dlp/yt-dlp/wiki/Installation +yt-dlp-update() { + sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp +sudo chmod a+rx /usr/local/bin/yt-dlp # Make executable + } + +mpvyt() { + mpv --ytdl ytdl_path=/usr/local/bin/yt-dlp "$@" + } + # taken from default changes to bashrc and bash_profile path-add --end --ifexists $HOME/.rvm/bin # also had ruby bin dir, but moved that to environment.sh