From 61d1c6c48d7c43e0ddff86e6c3cd16f7c3bed4bf Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 5 Feb 2022 13:42:40 +0100 Subject: [PATCH] Make Emacs usable when a video is playing --- ytplay.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ytplay.el b/ytplay.el index 63d239e..918d879 100644 --- a/ytplay.el +++ b/ytplay.el @@ -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)