aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-30 14:57:41 +0300
committerThanos Apollo <[email protected]>2023-08-30 14:57:41 +0300
commit6666c9150f01a90c279e8b414e839ade2b0a4837 (patch)
tree01abe12c11e21d8891a9bae158bf357ed9672f14 /yeetube.el
parentc4f1919b7fae128dcac424c3a820cdd20413c16d (diff)
yeetube-download-videos: remove audio-only option
Diffstat (limited to 'yeetube.el')
-rw-r--r--yeetube.el15
1 files changed, 1 insertions, 14 deletions
diff --git a/yeetube.el b/yeetube.el
index 3b1c644..981a47e 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -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 ()