summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2020-10-30 03:42:09 +0000
committerjao <jao@gnu.org>2020-10-30 03:42:09 +0000
commit05ffe94a09be090270eefaa331e15bcad23311b4 (patch)
tree0075f9372c0a0fe87ae8b0f85fe40a67206e6725
parent57369972d4c8c3ae8f61ce72cfa0ff23562d2843 (diff)
downloadelibs-05ffe94a09be090270eefaa331e15bcad23311b4.tar.gz
elibs-05ffe94a09be090270eefaa331e15bcad23311b4.tar.bz2
jao-emms: auto-recover running mpd info
-rw-r--r--emms/jao-emms-info-track.el6
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)