some nice ytdl related commands
authorIan Kelling <ian@iankelling.org>
Wed, 26 Jul 2023 02:30:00 +0000 (22:30 -0400)
committerIan Kelling <ian@iankelling.org>
Wed, 26 Jul 2023 02:30:00 +0000 (22:30 -0400)
brc2

diff --git a/brc2 b/brc2
index 0432e3ad419ff0c07a1f20a5087a125e45bc5aee..d51add8e40365e401367a9b7b13e615c1c5fe3a7 100644 (file)
--- 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