aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-26 00:49:47 +0300
committerThanos Apollo <[email protected]>2023-08-26 00:52:54 +0300
commit2b3616fd7aa1bad57b6e008ec91bb3222ea22a7b (patch)
tree72a93317600fd6b31f27434b226240f098badeb5 /yeetube.el
parent25759176ea86009e93d316ad7ed8bb4a80f92316 (diff)
Fix: hardcode url as string in shell commands
Diffstat (limited to 'yeetube.el')
-rw-r--r--yeetube.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/yeetube.el b/yeetube.el
index a50fd01..fbc48a9 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -159,7 +159,7 @@ Example Usage:
(if (eq yeetube-player 'mpv)
(yeetube-start-mpv-process url)
(yeetube-start-process
- (format "%s %s" media-player url))))))
+ (format "%s '%s'" media-player url))))))
(defun yeetube-play ()
"Open the url at point in an `'org-mode buffer using ='yeetube-player'."
@@ -412,11 +412,11 @@ Example Usage:
(let ((default-directory yeetube-download-directory))
(async-shell-command
(if yeetube-download-audio-format
- (format "%s %s --extract-audio --audio-format %s"
+ (format "%s '%s' --extract-audio --audio-format %s"
(shell-quote-argument yeetube-yt-dlp)
(shell-quote-argument url)
(shell-quote-argument yeetube-download-audio-format))
- (format "%s %s"
+ (format "%s '%s'"
(shell-quote-argument yeetube-yt-dlp)
(shell-quote-argument url)))
(message "Downloading %s " url))))))
@@ -452,12 +452,12 @@ prompt blank to keep the default name."
(name (cdr pair)))
(call-process-shell-command
(if yeetube-download-audio-format
- (format "%s %s --extract-audio --audio-format %s -o %s"
+ (format "%s '%s' --extract-audio --audio-format %s -o %s"
(shell-quote-argument yeetube-yt-dlp)
(shell-quote-argument url)
(shell-quote-argument yeetube-download-audio-format)
(shell-quote-argument name))
- (format "%s %s -o %s"
+ (format "%s '%s' -o %s"
(shell-quote-argument yeetube-yt-dlp)
(shell-quote-argument url)
(shell-quote-argument name)))