ref: 777476eb048a15a16514ea09b4e95ba531e4c11e
parent: 4488faf5a0866ac732012234422773c9a437a400
author: Sigrid <ftrvxmtrx@gmail.com>
date: Tue Jan 12 05:13:00 EST 2021
plumb/basic: handle tga, wav, au, mid and mus
--- a/sys/lib/plumb/basic
+++ b/sys/lib/plumb/basic
@@ -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|MP3|ogg|OGG|flac|FLAC|wav|WAV|au|AU|mid|MID|mus|MUS|m3u|M3U|pls|PLS)'
arg isfile $0
plumb to audio
plumb start window -scroll play $file
@@ -44,7 +44,7 @@
# image files go to page
type is text
data matches '[a-zA-Z¡-0-9_\-.,/]+'
-data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV)'
+data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV|tga|TGA)'
arg isfile $0
plumb to image
plumb client page -wi
--
⑨