Skip to content

Commit 4f6850e

Browse files
committed
tweak(media): minor changes in MPV browse-url integration
1 parent 0c697be commit 4f6850e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/me-media.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
:group 'minemacs-utils
1414
:type 'string)
1515

16-
(defvar +mpv-buffer-name " *MPV*")
17-
(defvar +mpv-process-name "mpv")
1816

1917
(when (executable-find +mpv-command)
2018
(defun +browse-url-mpv (url &optional _args)
2119
"Open URL with MPV."
22-
(start-process +mpv-process-name +mpv-buffer-name +mpv-command url))
23-
20+
(start-process "browse-url:mpv" " *MPV:browse-url*" +mpv-command url))
2421
;; Automatically open Youtube links in MPV
2522
(setq browse-url-browser-function
2623
`((,(rx (seq "http" (? ?s) "://" (? "www.") (or "youtube.com" "youtu.be"))) . +browse-url-mpv)

0 commit comments

Comments
 (0)