diff options
-rw-r--r-- | 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) |