From 874a92b55ccd177557cee15dad9a4572bc84dd8f Mon Sep 17 00:00:00 2001 From: Lucas Bonnet Date: Mon, 22 Feb 2010 20:08:08 +0100 Subject: * lisp/emms-player-mpd.el (emms-player-mpd-add): do not add files not recognized by MPD Patch by David Engster --- lisp/emms-player-mpd.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emms-player-mpd.el b/lisp/emms-player-mpd.el index fa8f911..a8f6b9e 100644 --- a/lisp/emms-player-mpd.el +++ b/lisp/emms-player-mpd.el @@ -805,7 +805,8 @@ Execute CALLBACK with CLOSURE as its first argument when done." ((or (eq type 'playlist) (string-match "\\.\\(m3u\\|pls\\)\\'" name)) (emms-player-mpd-add-playlist name closure callback)) - ((eq type 'file) + ((and (eq type 'file) + (string-match emms-player-mpd-supported-regexp name)) (emms-player-mpd-add-file name closure callback))))) (defun emms-player-mpd-add-several-tracks (tracks closure callback) -- cgit v1.2.3