aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-07-10 17:24:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-07-10 17:24:30 +1200
commit3be1f02edfc2ee74d76ae2a994b8a5015ea7d41c (patch)
tree13538e1af8060406ead2d4cca1ccc233ac3500d8
parentAdd clipboard copy to scrot screen snap (diff)
downloaddotfiles-3be1f02edfc2ee74d76ae2a994b8a5015ea7d41c.tar.gz
dotfiles-3be1f02edfc2ee74d76ae2a994b8a5015ea7d41c.zip
Add youtube-dl config
-rw-r--r--Makefile5
-rw-r--r--README.md1
-rw-r--r--youtube-dl/config5
3 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4ad78788..fe20d2df 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,7 @@
install-vint \
install-wget \
install-x \
+ install-youtube-dl \
install-zsh \
check \
check-bash \
@@ -636,6 +637,10 @@ install-x: check-xinit
cp -p -- X/Xresources $(HOME)/.Xresources
cp -p -- X/Xresources.d/* $(HOME)/.Xresources.d
+install-youtube-dl:
+ mkdir -p -- $(XDG_CONFIG_HOME)/youtube-dl
+ cp -p -- youtube-dl/config $(XDG_CONFIG_HOME)/youtube-dl
+
install-zsh: check-zsh install-sh
mkdir -p -- $(HOME)/.zshrc.d
cp -p -- zsh/profile.d/*.sh $(HOME)/.profile.d
diff --git a/README.md b/README.md
index 5381ed9f..0380d79c 100644
--- a/README.md
+++ b/README.md
@@ -113,6 +113,7 @@ Configuration is included for:
- [Vim](https://www.vim.org/)---Vi IMproved, a text editor
- [X11](https://www.x.org/wiki/)---Windowing system with network transparency
for Unix
+- [youtube-dl](https://youtube-dl.org/)---Download manager for video hosting websites
There is also some slightly customized support for multi-version environment
management for three major scripting languages:
diff --git a/youtube-dl/config b/youtube-dl/config
new file mode 100644
index 00000000..ae2162f5
--- /dev/null
+++ b/youtube-dl/config
@@ -0,0 +1,5 @@
+# Get WebM if we can, but keep going if not
+--format 'bestvideo[ext=webm]+bestaudio[ext=webm]/best'
+
+# Save into the ~/download directory
+--output ~/download/%(title)s-%(id)s.%(ext)s