aboutsummaryrefslogtreecommitdiff
path: root/emms-playlist-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'emms-playlist-mode.el')
-rw-r--r--emms-playlist-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index b35e9b3..88f36c7 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -190,7 +190,8 @@ Otherwise play the track immediately."
(name (emms-track-get track 'name))
(type (emms-track-get track 'type)))
(if (or (eq type 'playlist)
- (string-match "\\.\\(m3u\\|pls\\)\\'" name))
+ (and (eq type 'file)
+ (string-match "\\.\\(m3u\\|pls\\)\\'" name)))
(emms-playlist-mode-load-playlist)
(emms-playlist-mode-play-current-track)))))