summaryrefslogtreecommitdiffhomepage
path: root/lib/media
diff options
context:
space:
mode:
Diffstat (limited to 'lib/media')
-rw-r--r--lib/media/jao-mpris.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/media/jao-mpris.el b/lib/media/jao-mpris.el
index 63a5aae..2537fa8 100644
--- a/lib/media/jao-mpris.el
+++ b/lib/media/jao-mpris.el
@@ -90,6 +90,11 @@
(defvar jao-mpris--current nil)
(defvar jao-mpris-track-string "")
+;;;###autoload
+(defun jao-mpris-reset ()
+ (interactive)
+ (setq jao-mpris-track-string ""))
+
(defun jao-mpris--get (k &optional l)
(when-let (v (alist-get k (or l jao-mpris--current)))
(if (consp v) (car v) v)))