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:
Andrew Borodin 2021-02-19 16:57:01 +03:00
parent 887bd8fe86
commit 4ae6cdb774
2 changed files with 5 additions and 0 deletions

View File

@ -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'

View File

@ -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