fix: use '-' placeholder for unknown quality instead of 'CD Quality'

- PlaylistDetailView: Show '-' when quality data is unavailable
- handleDisplayTrackPlay: Use '-' fallback, added TODO for streaming update
- handleDisplayTrackDownload: Consistent quality fallback logic
- TrackRow: Always render quality column (previous commit)

This prevents showing potentially incorrect 'CD Quality' labels.
Quality should be updated when actual streaming info is available.
This commit is contained in:
vicrodh committed 2026-01-11 19:49:17 -06:00
1 parent 60fcc7253d
commit 1ae0073dff
2 files changed
+8 -5

No files matched your search

@@ -650,7 +650,7 @@
? `${track.bitDepth}bit/${track.samplingRate}kHz`
: track.hires
? 'Hi-Res'
: 'CD Quality'}
: '-'}
hideFavorite={track.isLocal}
hideDownload={track.isLocal}
downloadStatus={downloadInfo.status}
+7 -4
View File
@@ -736,9 +736,11 @@
async function handleDisplayTrackDownload(track: PlaylistTrack) {
try {
const quality = track.hires && track.bitDepth && track.samplingRate
const quality = track.bitDepth && track.samplingRate
? `${track.bitDepth}bit/${track.samplingRate}kHz`
: 'CD Quality';
: track.hires
? 'Hi-Res'
: '-';
await downloadTrack({
id: track.id,
title: track.title,
@@ -767,12 +769,13 @@
// Determine quality string:
// - If we have exact bitDepth/samplingRate, show them
// - If hires flag is true but no exact values, show "Hi-Res"
// - Otherwise "CD Quality"
// - Otherwise show "-" (unknown - will be updated when streaming returns quality info)
// TODO: Update quality when backend returns actual streaming quality
const quality = track.bitDepth && track.samplingRate
? `${track.bitDepth}bit/${track.samplingRate}kHz`
: track.hires
? 'Hi-Res'
: 'CD Quality';
: '-';
// Fire-and-forget async call
playTrack({