aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-14 16:13:16 +0300
committerThanos Apollo <[email protected]>2023-10-17 09:24:21 +0300
commitb954c2f124a94a5eae12b4439640a3c6bbabe72f (patch)
tree96d61f0017fffd8900222db91a95372dee87ea61
parent512a9a3bb5953bc62cc263899d3a888dd87a2090 (diff)
yeetube:(play-saved-video) Message the label of bookmarked URL
-rw-r--r--yeetube.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index 64d61a1..d12e618 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -136,13 +136,16 @@ You can change the value to an invidious instance.")
(url (yeetube-get-url)))
(push (cons name url) yeetube-saved-videos)))
+;; We could use keywords here, but it would break users saved videos
+;; from previous versions.
;;;###autoload
(defun yeetube-play-saved-video ()
"Select & Play a saved video."
(interactive)
(yeetube-load-saved-videos)
(let ((video (completing-read "Select video: " yeetube-saved-videos nil t)))
- (funcall yeetube-player (cdr (assoc video yeetube-saved-videos)))))
+ (funcall yeetube-player (cdr (assoc video yeetube-saved-videos)))
+ (message "Playing: %s" (car (assoc video yeetube-saved-videos)))))
;;;###autoload
(defun yeetube-remove-saved-video ()