diff options
author | Thanos Apollo <[email protected]> | 2023-08-30 12:36:36 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-30 12:36:36 +0300 |
commit | b369d655e470fb6539237202491dd6c836136509 (patch) | |
tree | 3d3ccbaeea169977bfaa810755bebae3f5e3fba7 | |
parent | 2c6fef3d792043a7469f97eb7bbc413c3f491179 (diff) |
yeetube-download-video: use call-process-shell-command
-rw-r--r-- | yeetube.el | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -410,16 +410,15 @@ Example Usage: :raw-link (org-element-context)))) (when (string-prefix-p "http" url) (let ((default-directory yeetube-download-directory)) - (async-shell-command + (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'" - (shell-quote-argument yeetube-yt-dlp) - (shell-quote-argument url))) - (message "Downloading %s " url)))))) + (format "%s '%s'" (executable-find "yt-dlp") url)) + nil 0) + (message "Downloading %s " url))))) ;;;###autoload (defun yeetube-download-videos () |