summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-03 21:14:21 +0200
committerThanos Apollo <[email protected]>2024-03-03 21:14:21 +0200
commit5df5ad659a7cf53eccd57c9568b8865167e121fc (patch)
treeb2acb63f5a9348a4870034e63c4ef6b05d6e683d
parenta3c7a9174ab7521acbe42784aa34edd994d48cd2 (diff)
[fix] Refactor defcustom yeetube-download-audio-format
- Fix customize interface warning - Specify audio formats This change was suggested by Phil Hudson <[email protected]>
-rw-r--r--yeetube.el16
1 files changed, 10 insertions, 6 deletions
diff --git a/yeetube.el b/yeetube.el
index 7ffc480..b3f0c89 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -62,12 +62,16 @@
:group 'yeetube)
(defcustom yeetube-download-audio-format nil
- "Select download video as audio FORMAT.
-If nil download output will be the default format.
-
-Example Usage:
- (setf yeetube-download-audio-format \"m4a\")"
- :type 'string
+ "Specify the preferred audio FORMAT for audio only downloads."
+ :type '(choice (const :tag "Default" nil)
+ (const :tag "AAC" "aac")
+ (const :tag "ALAC" "alac")
+ (const :tag "FLAC" "flac")
+ (const :tag "M4A" "m4a")
+ (const :tag "MP3" "mp3")
+ (const :tag "OPUS" "opus")
+ (const :tag "Vorbis" "vorbis")
+ (const :tag "WAV" "wav"))
:group 'yeetube)
(defcustom yeetube-download-directory "~/Downloads"