diff options
author | Thanos Apollo <[email protected]> | 2024-04-11 16:22:25 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-04-11 16:22:25 +0300 |
commit | 447005142a254516ad51f85efc023e2b9dc0e92c (patch) | |
tree | ddd260c4c257379848ebd4934953b39bdcaac864 /yeetube.el | |
parent | c443a9146b70f0b9697e2ee68356ac79a19bd81e (diff) |
[fix] yeetube-play: Use 2nd argument only when yeetube-mpv-modeline
- Pass information for yeetube-mpv-modeline as a second argument only
when it's enabled. This way it should not break current users
configuration with different media players.
We could write this differently to hardcode yeetube-mpv-play, but I
would like to make it possible for others to make 3rd party media
players to be used with yeetube & yeetube-mpv-modeline.
Diffstat (limited to 'yeetube.el')
-rw-r--r-- | yeetube.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -228,7 +228,8 @@ Keywords: (interactive) (let* ((video-url (yeetube-get-url)) (video-title (yeetube-get :title)) - (proc (funcall yeetube-play-function video-url (when yeetube-mpv-modeline-mode video-title)))) + (proc (apply yeetube-play-function video-url + (when yeetube-mpv-modeline-mode (list video-title))))) (when (processp proc) (process-put proc :now-playing video-title)) (push (list :url video-url :title video-title) yeetube-history) |