commit ae4561a6eee85e6d5bb0c07fa625805d3c408343 parent 2bb5e97d7bf854be5c8d4ef180117946720eab5a Author: hhvn <dev@hhvn.uk> Date: Thu, 19 Aug 2021 01:48:37 +0100 .s/b/plumb: some peertube recognition Diffstat:
M | .scripts/bin/plumb | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb @@ -130,7 +130,9 @@ do plumb terminal '$proxy mpv --pause $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?://(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'