diff options
author | forcer <forcer> | 2005-09-20 20:02:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2005-09-20 20:02:00 +0000 |
commit | 8b3fe1b890cb5c0ac3581ead85abc45866a0d170 (patch) | |
tree | cffa36c8a00c2c8eb6bf251cf1b4e0866bdf5e63 | |
parent | 210dae37326f6e57d2038d746e785840614ee70f (diff) |
emms-info-mp3info ignores files which are not mp3s
darcs-hash:20050920200258-2189f-b022eaf859e07f2433128cb2469eeb935bf12785.gz
-rw-r--r-- | emms-info-mp3info.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 |