diff options
author | Thanos Apollo <[email protected]> | 2023-07-07 09:09:45 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-07 09:09:45 +0300 |
commit | 6b649d55eaa23433bc8ba36b8482fd32916c7f4f (patch) | |
tree | 3f2bcd293a8f7942e20631c6de6893a3ed7931d3 | |
parent | 470acf6102ca7f5a5c938c9545d35e11924d42b2 (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.el | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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))) |