dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit bcd8f2c7524bddfca87f63bed5dacd25603b8683
parent d9bc847c643fda3c0c450ad2592fcb86710f838b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun,  1 Mar 2020 10:40:33 +0100

Limit video resolution and frame rate with youtube-dl

Diffstat:
M.local/bin/plumb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -101,7 +101,7 @@ handle_target() { elif regeximatch "$t" '\.(pdf|ps|epub|djvu)$'; then zathura "$(fetch "$t")" elif regeximatch "$t" '(youtube\.|youtu\.be|vimeo\.com)'; then - cd ~/tmp && detach youtube-dl "$t" + cd ~/tmp && detach youtube-dl -f '[height\<=?768][fps\<=?30]+bestaudio/best' "$t" elif regeximatch "$t" '(smbc-comics\.com|xkcd\.com|jspowerhour\.com)'; then cd /tmp && detach comic "$t" elif regexmatch "$t" '10\.[0-9]*\/'; then