From 8b3fe1b890cb5c0ac3581ead85abc45866a0d170 Mon Sep 17 00:00:00 2001 From: forcer Date: Tue, 20 Sep 2005 20:02:00 +0000 Subject: emms-info-mp3info ignores files which are not mp3s darcs-hash:20050920200258-2189f-b022eaf859e07f2433128cb2469eeb935bf12785.gz --- emms-info-mp3info.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emms-info-mp3info.el b/emms-info-mp3info.el index 07f371b..f56e7d2 100644 --- a/emms-info-mp3info.el +++ b/emms-info-mp3info.el @@ -66,7 +66,8 @@ This should be a list of info-flag=value lines." (defun emms-info-mp3info (track) "Add track information to TRACK. This is a useful element for `emms-info-functions'." - (when (eq 'file (emms-track-type track)) + (when (and (eq 'file (emms-track-type track)) + (string-match "\\.[Mm][Pp]3\\'" (emms-track-name track))) (with-temp-buffer (when (zerop (apply 'call-process emms-info-mp3info-program-name -- cgit v1.2.3