diff options
author | Rahguzar <[email protected]> | 2024-03-10 12:09:25 +0100 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-17 13:23:57 +0200 |
commit | fe794975246f1910bfdc494e266817d33fd199df (patch) | |
tree | 53ae1a4d7a7e265d7ce2d2937515c71ab053749a /yeetube.el | |
parent | 33b51c57d01b30c5c2bfc6f45993520dcc325176 (diff) |
Optionally show status of mpv process on modeline
Diffstat (limited to 'yeetube.el')
-rw-r--r-- | yeetube.el | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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)) |