summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-07 09:09:45 +0300
committerThanos Apollo <[email protected]>2023-07-07 09:09:45 +0300
commit6b649d55eaa23433bc8ba36b8482fd32916c7f4f (patch)
tree3f2bcd293a8f7942e20631c6de6893a3ed7931d3
parent470acf6102ca7f5a5c938c9545d35e11924d42b2 (diff)
change:(yeetube-change-download-audio-format)
Change it so it takes FORMAT as an argument to make it easier to test
-rw-r--r--yeetube.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/yeetube.el b/yeetube.el
index 4bd1882..68c20cd 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -344,11 +344,10 @@ then run this command interactively."
(setq yeetube-download-directory
(read-directory-name "Select a directory: ")))
-(defun yeetube-change-download-audio-format ()
- "Change download audio format."
- (interactive)
- (setq yeetube-download-audio-format
- (read-string "Specify audio format(no for nil): "))
+(defun yeetube-change-download-audio-format (format)
+ "Change download format to audio FORMAT."
+ (interactive "sSpecify Audio Format(no for nil): ")
+ (setq yeetube-download-audio-format format)
(when (equal yeetube-download-audio-format "no")
(setq yeetube-download-audio-format nil)))