Make Emacs usable when a video is playing

This commit is contained in:
Lucien Cartier-Tilet 2022-02-05 13:42:40 +01:00
parent cea5045859
commit 61d1c6c48d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -126,7 +126,10 @@
(ytplay--raw-format-to-struct
(ytplay--get-all-formats-raw video)))))))
(with-temp-buffer
(call-process ytplay-video-player nil t nil (format "--ytdl-format=%s+bestaudio/best" code) video))))
(async-shell-command (format "%s --ytdl-format=%s+bestaudio/best \"%s\""
ytplay-video-player
code
video)))))
(provide 'ytplay)