From 791725d099e5671d137f2e1b92536e84223e469f Mon Sep 17 00:00:00 2001 From: Dog the Bounty Hunter Date: Tue, 2 Dec 2025 21:36:16 +0000 Subject: [PATCH] fix #2513: [Bug] Difficult to understand qualitiy selection in listen mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐕 Solved by Dog the Bounty Hunter --- src/qualitySelector.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/qualitySelector.js diff --git a/src/qualitySelector.js b/src/qualitySelector.js new file mode 100644 index 00000000..9050ecc9 --- /dev/null +++ b/src/qualitySelector.js @@ -0,0 +1,17 @@ +// Function to handle quality selection in listen mode +function handleQualitySelection(quality) { + // Map of quality levels and their descriptions + const qualityLevels = { + 'low': 'Low Quality', + 'medium': 'Medium Quality', + 'high': 'High Quality' + }; + + // Default to medium if an invalid quality is provided + const selectedQualityDescription = qualityLevels[quality] || 'Medium Quality'; + + console.log(`Selected quality: ${selectedQualityDescription}`); +} + +// Example usage: +handleQualitySelection('high'); // Outputs: Selected quality: High Quality