feat(library): improve local library UX and audio metrics

- Move Local Library section below Playlists in sidebar (Qobuz is main B.U.)
- Replace text input with native XDG folder picker dialog
- Add bit_depth and sample_rate to LocalAlbum model
- Display rich audio specs in album detail view (format, bit depth, sample rate, channels)
- Show format quality badge on album cards (e.g. "FLAC 24/96")
- Add Hi-Res visual indicator for 24-bit or >48kHz content
This commit is contained in:
vicrodh committed 2026-01-09 14:05:17 -06:00
1 parent b0a64b9caa
commit e8a61a45ce
4 files changed
+103 -29

No files matched your search

+5 -1
View File
@@ -255,6 +255,8 @@ impl LibraryDatabase {
COUNT(*) as track_count,
SUM(duration_secs) as total_duration,
MAX(format) as format,
MAX(bit_depth) as bit_depth,
MAX(sample_rate) as sample_rate,
MIN(file_path) as directory_path
FROM local_tracks
GROUP BY album, COALESCE(album_artist, artist)
@@ -279,7 +281,9 @@ impl LibraryDatabase {
format: Self::parse_format(
&row.get::<_, Option<String>>(6)?.unwrap_or_default(),
),
directory_path: row.get::<_, String>(7).unwrap_or_default(),
bit_depth: row.get(7)?,
sample_rate: row.get::<_, Option<u32>>(8)?.unwrap_or(44100),
directory_path: row.get::<_, String>(9).unwrap_or_default(),
})
})
.map_err(|e| LibraryError::Database(e.to_string()))?;
+2
View File
@@ -109,6 +109,8 @@ pub struct LocalAlbum {
pub track_count: u32,
pub total_duration_secs: u64,
pub format: AudioFormat,
pub bit_depth: Option<u32>,
pub sample_rate: u32,
pub directory_path: String,
}