From 5df5ad659a7cf53eccd57c9568b8865167e121fc Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 3 Mar 2024 21:14:21 +0200 Subject: [fix] Refactor defcustom yeetube-download-audio-format - Fix customize interface warning - Specify audio formats This change was suggested by Phil Hudson --- yeetube.el | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'yeetube.el') 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" -- cgit v1.2.3