diff options
author | Thanos Apollo <[email protected]> | 2023-08-30 14:57:41 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-30 14:57:41 +0300 |
commit | 6666c9150f01a90c279e8b414e839ade2b0a4837 (patch) | |
tree | 01abe12c11e21d8891a9bae158bf357ed9672f14 | |
parent | c4f1919b7fae128dcac424c3a820cdd20413c16d (diff) |
yeetube-download-videos: remove audio-only option
-rw-r--r-- | yeetube.el | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -430,11 +430,7 @@ prompt blank to keep the default name." (let ((url "") (name "") (download-counter 1) - (audio-only-p (y-or-n-p "Download videos as audio only format?")) (stored-contents nil)) - (if audio-only-p - (yeetube-change-download-audio-format (read-string "Specify audio format: ")) - (yeetube-change-download-audio-format nil)) ;; Read links and names until "q" is entered (while (not (string= url "q")) (setq url (read-string "Enter URL (q to quit): ")) @@ -447,16 +443,7 @@ prompt blank to keep the default name." (let ((url (car pair)) (name (cdr pair))) (call-process-shell-command - (if yeetube-download-audio-format - (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" - (shell-quote-argument yeetube-yt-dlp) - (shell-quote-argument url) - (shell-quote-argument name))) + (format "%s '%s' -o %s" (executable-find "yt-dlp") url name) nil 0))))) (defun yeetube-insert-info () |