aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube.el
diff options
context:
space:
mode:
authorRahguzar <[email protected]>2024-03-10 12:09:25 +0100
committerThanos Apollo <[email protected]>2024-03-17 13:23:57 +0200
commitfe794975246f1910bfdc494e266817d33fd199df (patch)
tree53ae1a4d7a7e265d7ce2d2937515c71ab053749a /yeetube.el
parent33b51c57d01b30c5c2bfc6f45993520dcc325176 (diff)
Optionally show status of mpv process on modeline
Diffstat (limited to 'yeetube.el')
-rw-r--r--yeetube.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/yeetube.el b/yeetube.el
index bb51a25..1b7bd34 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -210,9 +210,11 @@ Keywords:
(defun yeetube-play ()
"Play video at point in *yeetube* buffer."
(interactive)
- (let ((video-url (yeetube-get-url))
- (video-title (yeetube-get :title)))
- (funcall yeetube-play-function video-url)
+ (let* ((video-url (yeetube-get-url))
+ (video-title (yeetube-get :title))
+ (proc (funcall yeetube-play-function video-url)))
+ (when (processp proc)
+ (process-put proc :now-playing video-title))
(push (list :url video-url :title video-title) yeetube-history)
(message "Playing: %s" video-title)))
@@ -651,6 +653,7 @@ A and B are vectors."
yeetube-content)
tabulated-list-sort-key (cons yeetube-default-sort-column
yeetube-default-sort-ascending))
+ (setq-local yeetube-mpv-show-status t)
(display-line-numbers-mode 0)
(tabulated-list-init-header)
(tabulated-list-print))