shithub: patch

Download patch

ref: eae29eaa9c62eb2cea177b7d22ad40fed7734992
parent: 6a44dcea2cfd720f5a772e4971d8fc832f22043f
author: qwx <qwx@sciops.net>
date: Sun Jan 12 17:51:06 EST 2020

patch /sys/lib/plumb/basic for opus files

--- /dev/null
+++ b/libplumb-basic
@@ -1,0 +1,12 @@
+diff -r d6c26034ff13 sys/lib/plumb/basic
+--- a/sys/lib/plumb/basic	Sun Jan 12 00:19:39 2020 +0100
++++ b/sys/lib/plumb/basic	Sun Jan 12 23:50:25 2020 +0100
+@@ -36,7 +36,7 @@
+ # audio
+ type is text
+ data matches '[a-zA-Z¡-￿0-9_\-.,/]+'
+-data matches '([a-zA-Z¡-￿0-9_\-.,/]+)\.(mp3|ogg|flac|m3u|pls)'
++data matches '([a-zA-Z¡-￿0-9_\-.,/]+)\.(mp3|ogg|opus|flac|m3u|pls)'
+ arg isfile	$0
+ plumb to audio
+ plumb start window -scroll play $file