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)