aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLucas Bonnet <lucas@rincevent.net>2010-02-22 20:08:08 +0100
committerLucas Bonnet <lucas@rincevent.net>2010-02-22 20:08:08 +0100
commit874a92b55ccd177557cee15dad9a4572bc84dd8f (patch)
tree27aada43cd3233ab127131828ad25c43a75fdc9c /lisp
parentcf3b4a73e3ee05b0a4e4cd03e5da481da0466a8f (diff)
* lisp/emms-player-mpd.el (emms-player-mpd-add): do not add files not recognized by MPD
Patch by David Engster <deng@randomsample.de>
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emms-player-mpd.el3
1 files changed, 2 insertions, 1 deletions
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)