aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube-mpv.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-03 07:51:26 +0300
committerThanos Apollo <[email protected]>2023-10-03 07:51:26 +0300
commit382eb674e1653486418680a1af43f7d92bf7064b (patch)
tree9aabf5d2acd8de44a2bbb3fa1c46894464a94a38 /yeetube-mpv.el
parent2d82228ec38b8e7286ebf8da0fa223be10f5a5d3 (diff)
[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
Diffstat (limited to 'yeetube-mpv.el')
-rw-r--r--yeetube-mpv.el6
1 files 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 ()