summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/yeetube.el b/yeetube.el
index cd2f656..3b1c644 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -412,10 +412,7 @@ Example Usage:
(let ((default-directory yeetube-download-directory))
(call-process-shell-command
(if yeetube-download-audio-format
- (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' --extract-audio --audio-format %s" (executable-find "yt-dlp") url yeetube-download-audio-format)
(format "%s '%s'" (executable-find "yt-dlp") url))
nil 0)
(message "Downloading %s " url)))))