From b384faef82b99764692d6559e389772b55e48fb8 Mon Sep 17 00:00:00 2001 From: "Mikhail S. Pobolovets" Date: Tue, 9 Jun 2009 11:12:41 +0300 Subject: [PATCH] Handling of XIPH multimedia formats Ticket: #328 mc.ext update in respect to the handling of XIPH multimedia formats .ogg, oga, .ogv, etc. http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions Update provided by jemm Signed-off-by: Mikhail S. Pobolovets --- misc/mc.ext.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/mc.ext.in b/misc/mc.ext.in index 8d333b674..ba9658819 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -400,10 +400,13 @@ regex/\.([mM][pP]3)$ Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p' -regex/\.([oO][gG][gG])$ +regex/\.([oO][gG][gG|aA|vV|xX])$ Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi View=%view{ascii} ogginfo %s +regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$ + Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi + regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$ Open=timidity %f