commit 982851e577cebe9fd9537715e6c73392861a8da2
parent 6e95b7479fbf933e6e1c9d6c3505e725696575f3
Author: Ian Jones <ian@contractcoder.biz>
Date: Wed, 12 Jan 2022 14:03:58 +0000
Changes to include gophers URI's, yewtu.be and youtube with and without www. prefix
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/bin/plumber b/bin/plumber
@@ -31,11 +31,13 @@ plumbrules = [
"mediaopener '%s'"],
["^dvb://.*", "tvopener '%s'"],
["^geo:.*", "geoopener '%s'"],
- ["^gopher://.*", "gopheropener '%s'"],
+ ["^gopher(|s)://.*", "gopheropener '%s'"],
["^http://sprunge.us/.*", "textwebopener '%s'"],
["^http://ix.io/.*", "textwebopener '%s'"],
- ["^http(|s)://www.youtube.com/watch.*", "ytopener '%s'"],
- ["^http(|s)://www.youtube.com/embed/.*", "ytopener '%s'"],
+ ["^http(|s)://(|www\.)youtube.com/watch.*", "ytopener '%s'"],
+ ["^http(|s)://(|www\.)youtube.com/embed/.*", "ytopener '%s'"],
+ ["^http(|s)://(|www\.)yewtu.be/watch.*", "ytopener '%s'"],
+ ["^http(|s)://(|www\.)yewtu.be/embed/.*", "ytopener '%s'"],
["^http(|s)://.*", "webopener '%s'"],
["^mailto:.*", "mailcomposer '%s'"],
["^dance:.*", "danceopener '%s'"],