summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/yeetube.el b/yeetube.el
index d6c44ed..5cd7a88 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -104,16 +104,17 @@ You can change the value to an invidious instance.")
video-info))
(defun yeetube-get-url ()
- "Get url for subject in *yeetube* buffer at point."
- (let ((video-url (concat "https://youtube.com/watch?v="
- (cadr (nth (- (line-number-at-pos) 1) (reverse yeetube-content))))))
+ "Get video url."
+ (let ((video-url (concat yeetube-url
+ (yeetube-get :videoid))))
video-url))
;;;###autoload
(defun yeetube-play ()
"Play video at point in *yeetube* buffer."
(interactive)
- (funcall yeetube-player (yeetube-get-url)))
+ (funcall yeetube-player (yeetube-get-url))
+ (message "Playing: %s" (yeetube-get :title)))
(defun yeetube-load-saved-videos ()
"Load saved videos."