[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emms-patches] [COMMIT] * lisp/emms-player-mpd.el (emms-player-mpd-add):
From: |
Lucas Bonnet |
Subject: |
[Emms-patches] [COMMIT] * lisp/emms-player-mpd.el (emms-player-mpd-add): do not add files not recognized by MPD |
Date: |
Mon, 22 Feb 2010 20:08:08 +0100 |
Patch by David Engster <address@hidden>
---
lisp/emms-player-mpd.el | 3 ++-
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)
--
debian.1.5.6.1.19.ge6b2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emms-patches] [COMMIT] * lisp/emms-player-mpd.el (emms-player-mpd-add): do not add files not recognized by MPD,
Lucas Bonnet <=