From ff877dc70b2f4f5622bf7dad3441c633b9ea1168 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 25 Jul 2023 22:30:00 -0400 Subject: [PATCH] some nice ytdl related commands --- brc2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.30.2