diff options
-rw-r--r-- | emms/jao-emms-info-track.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/emms/jao-emms-info-track.el b/emms/jao-emms-info-track.el index 9cf1c55..f1d922d 100644 --- a/emms/jao-emms-info-track.el +++ b/emms/jao-emms-info-track.el @@ -22,6 +22,7 @@ (require 'emms) (require 'emms-tag-editor) +(require 'emms-player-mpd) (require 'jao-osd) (require 'jao-emms) (require 'jao-minibuffer) @@ -159,7 +160,7 @@ (info-note . "c"))))) (defvar jao-emms-echo-string "") -(defun jao-emms-update-echo-string () +(defun jao-emms-update-echo-string (&optional track) (if (and emms-player-playing-p (not emms-player-paused-p)) (jao-emms--with-mpd-track (lambda (track _ play-len) @@ -187,7 +188,8 @@ (unless show-echo-line (eval-after-load 'emms-player-mpd '(remove-hook 'emms-player-started-hook 'emms-player-mpd-show))) - (unless no-id3 (jao-emms-install-i3dv2))) + (unless no-id3 (jao-emms-install-i3dv2)) + (ignore-errors (emms-player-mpd-connect))) (provide 'jao-emms-info-track) |