fix(downloads): update lossless quality labels
This commit is contained in:
parent
2a4136a5f6
commit
c315d2dfcd
2 changed files with 5 additions and 5 deletions
|
|
@ -4706,8 +4706,8 @@
|
||||||
<span class="description">Quality for streaming playback</span>
|
<span class="description">Quality for streaming playback</span>
|
||||||
</div>
|
</div>
|
||||||
<select id="streaming-quality-setting">
|
<select id="streaming-quality-setting">
|
||||||
<option value="HI_RES_LOSSLESS">Hi-Res FLAC (24-bit)</option>
|
<option value="HI_RES_LOSSLESS">Hi-Res Lossless (24-bit)</option>
|
||||||
<option value="LOSSLESS">FLAC (Lossless)</option>
|
<option value="LOSSLESS">Lossless (16-bit)</option>
|
||||||
<option value="HIGH">AAC 320kbps</option>
|
<option value="HIGH">AAC 320kbps</option>
|
||||||
<option value="LOW">AAC 96kbps</option>
|
<option value="LOW">AAC 96kbps</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -5156,8 +5156,8 @@
|
||||||
<span class="description">Quality for track downloads</span>
|
<span class="description">Quality for track downloads</span>
|
||||||
</div>
|
</div>
|
||||||
<select id="download-quality-setting">
|
<select id="download-quality-setting">
|
||||||
<option value="HI_RES_LOSSLESS">Hi-Res FLAC (24-bit)</option>
|
<option value="HI_RES_LOSSLESS">Hi-Res Lossless (24-bit)</option>
|
||||||
<option value="LOSSLESS">FLAC (Lossless)</option>
|
<option value="LOSSLESS">Lossless (16-bit)</option>
|
||||||
<option value="HIGH">AAC 320kbps</option>
|
<option value="HIGH">AAC 320kbps</option>
|
||||||
<option value="LOW">AAC 96kbps</option>
|
<option value="LOW">AAC 96kbps</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -830,6 +830,7 @@ export function initializeSettings(scrobbler, player, api, ui) {
|
||||||
};
|
};
|
||||||
const categoryOrder = ['Lossless', 'AAC', 'MP3', 'OGG'];
|
const categoryOrder = ['Lossless', 'AAC', 'MP3', 'OGG'];
|
||||||
allOptions.sort((a, b) => {
|
allOptions.sort((a, b) => {
|
||||||
|
if (a.category == b.category && a.category === 'Lossless') return 0; // Preserve original order for lossless options
|
||||||
const ai = categoryOrder.indexOf(a.category);
|
const ai = categoryOrder.indexOf(a.category);
|
||||||
const bi = categoryOrder.indexOf(b.category);
|
const bi = categoryOrder.indexOf(b.category);
|
||||||
const categoryDiff = (ai === -1 ? categoryOrder.length : ai) - (bi === -1 ? categoryOrder.length : bi);
|
const categoryDiff = (ai === -1 ? categoryOrder.length : ai) - (bi === -1 ? categoryOrder.length : bi);
|
||||||
|
|
@ -3155,7 +3156,6 @@ export function initializeSettings(scrobbler, player, api, ui) {
|
||||||
// Store might not exist, continue
|
// Store might not exist, continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (dbError) {
|
} catch (dbError) {
|
||||||
console.log('Could not clear IndexedDB stores:', dbError);
|
console.log('Could not clear IndexedDB stores:', dbError);
|
||||||
// Try to delete the entire database as fallback
|
// Try to delete the entire database as fallback
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue