From 382eb674e1653486418680a1af43f7d92bf7064b Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 3 Oct 2023 07:51:26 +0300 Subject: [fix] yeetube-mpv: Use shell-quote-argument Add shell-quote-argument to pass the url value. Pointed out by progfolio https://github.com/melpa/melpa/pull/8625 --- yeetube-mpv.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yeetube-mpv.el b/yeetube-mpv.el index 851e57b..4349186 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -53,9 +53,9 @@ (defun yeetube-mpv (url) "Start yeetube process to play URL using mpv." (yeetube-mpv-process - (if yeetube-mpv-disable-video - (format "%s --no-video '%s'" yeetube-mpv-path url) - (format "%s '%s'" yeetube-mpv-path url))) + (concat yeetube-mpv-path " " + (shell-quote-argument url) + (when yeetube-mpv-disable-video " --no-video"))) (message "yeetube: starting mpv process")) (defun yeetube-mpv-toggle-no-video-flag () -- cgit v1.2.3