mirror of https://github.com/MidnightCommander/mc
Ticket #4167: use mediainfo to view info about various media files.
Thanks korrado <anyhow2@mail.ru> for the issue. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
887bd8fe86
commit
4ae6cdb774
|
@ -12,6 +12,10 @@ do_view_action() {
|
|||
filetype=$1
|
||||
|
||||
case "${filetype}" in
|
||||
common)
|
||||
mediainfo "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
|
||||
mp3)
|
||||
mpg123 -vtn1 "${MC_EXT_FILENAME}" 2>&1 | \
|
||||
sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
|
||||
|
|
|
@ -487,6 +487,7 @@ shell/i/.svg
|
|||
|
||||
regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$
|
||||
Open=@EXTHELPERSDIR@/sound.sh open common
|
||||
View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common
|
||||
|
||||
regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
|
||||
Open=@EXTHELPERSDIR@/sound.sh open mod
|
||||
|
|
Loading…
Reference in New Issue