diff options
author | Rahguzar <[email protected]> | 2024-03-16 08:58:42 +0100 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-18 09:16:06 +0200 |
commit | 3916a2332a79c0640b5f9167bf67865493264937 (patch) | |
tree | 5b6a30d6ccebb5cc459ef06abb7d9a2230b9e671 | |
parent | 55e435fb7a3074cb756a41179d5c737ce2c69f3d (diff) |
Fix status command and pass process to quit-process
-rw-r--r-- | yeetube-mpv.el | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el index 77e28ca..39f8881 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -101,17 +101,18 @@ Accepted values include: 1080, 720, 480, 360, 240, 144") This function is not specific to just playing urls. Feel free to use to play local files." - (yeetube-mpv-process - (concat (when yeetube-mpv-enable-torsocks - (concat yeetube-mpv-torsocks " ")) - yeetube-mpv-path " --ytdl-format=" - (yeetube-mpv-ytdl-format-video-quality yeetube-mpv-video-quality) - " " - (shell-quote-argument input) - (when yeetube-mpv-disable-video " --no-video"))) - (message (if yeetube-mpv-enable-torsocks - "yeetube: Starting mpv process (using torsocks)" - "yeetube: Starting mpv process"))) + (let ((yeetube-mpv-path (executable-find "mpv"))) + (yeetube-mpv-process + (concat (when yeetube-mpv-enable-torsocks + (concat yeetube-mpv-torsocks " ")) + yeetube-mpv-path " --ytdl-format=" + (yeetube-mpv-ytdl-format-video-quality yeetube-mpv-video-quality) + " " + (shell-quote-argument input) + (when yeetube-mpv-disable-video " --no-video"))) + (message (if yeetube-mpv-enable-torsocks + "yeetube: Starting mpv process (using torsocks)" + "yeetube: Starting mpv process")))) (defun yeetube-mpv-toggle-no-video-flag () "Toggle no video flag for mpv player." |