diff options
author | Thanos Apollo <[email protected]> | 2023-08-26 00:49:47 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-26 00:52:54 +0300 |
commit | 2b3616fd7aa1bad57b6e008ec91bb3222ea22a7b (patch) | |
tree | 72a93317600fd6b31f27434b226240f098badeb5 | |
parent | 25759176ea86009e93d316ad7ed8bb4a80f92316 (diff) |
Fix: hardcode url as string in shell commands
-rw-r--r-- | yeetube.el | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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))) |