aboutsummaryrefslogtreecommitdiff
path: root/emms-player-mpd.el
diff options
context:
space:
mode:
Diffstat (limited to 'emms-player-mpd.el')
-rw-r--r--emms-player-mpd.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/emms-player-mpd.el b/emms-player-mpd.el
index f064ec2..e01c7da 100644
--- a/emms-player-mpd.el
+++ b/emms-player-mpd.el
@@ -1072,12 +1072,12 @@ info from MusicPD."
(if info
(emms-info-mpd-process track info)
(let (file)
- (when (and (eq 'file (emms-track-type track))
- emms-player-mpd-music-directory
- (setq file (emms-player-mpd-get-mpd-filename
- (emms-track-name track)))
- (string-match emms-player-mpd-supported-regexp file)
- (not (string-match "\\`http://" file)))
+ (when (or emms-player-mpd-music-directory
+ (and (eq 'file (emms-track-type track))
+ (setq file (emms-player-mpd-get-mpd-filename
+ (emms-track-name track)))
+ (string-match emms-player-mpd-supported-regexp file)
+ (not (string-match "\\`http://" file))))
(condition-case nil
(emms-player-mpd-send
(concat "find filename "