dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 65ae99855287c33e3fc583fc137e89926d6904d3
parent 4e5623bdb05989367b09cbe39d4ec9cb206a765d
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 18 Dec 2021 22:03:52 +0000

.s/b/plumb: youtube feeds

Diffstat:
M.scripts/bin/plumb | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb @@ -131,12 +131,14 @@ do matches "^(gopher|http)s?://.*\.gif$" && plumb gui '$proxy mpv --loop-file $arg' + matches "(youtu.be|youtube.com).*/feeds/" && + plumb gui 'sfeed_addfeed "$arg"' + matches "^(gopher|http)s?://.*\.(mkv|mp4|avi|webm|ogv|gifv|mp4|ape|m3u|m3u8)$" || matches "^https?://(www\.|m\.)?(youtube.com|youtu.be)" || matches "^https?://.*/videos/watch/" || # peertube matches "^https?://videos?\..*/w/" && # peertube also uses /w/, which is so ambiguous I made this subdomain-dependant - ! matches "(youtu.be|youtube.com).*/feeds/" && - plumb gui '$proxy mpv --pause $arg' + plumb gui 'queuevid "$arg" && $proxy mpv --pause "$arg"' matches "^https?://" && ! mime "text/html" &&