From b954c2f124a94a5eae12b4439640a3c6bbabe72f Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 14 Oct 2023 16:13:16 +0300 Subject: yeetube:(play-saved-video) Message the label of bookmarked URL --- yeetube.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'yeetube.el') 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 () -- cgit v1.2.3