From f6225ec9a8633af50f303390f4915727cd1d9c1d Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sun, 22 Mar 2026 15:36:25 -0700 Subject: [PATCH] Fix enrichment coverage: correct Spotify column name and add all 9 services --- database/music_database.py | 7 +++++-- webui/static/script.js | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/database/music_database.py b/database/music_database.py index 2a9ca271..278b7c29 100644 --- a/database/music_database.py +++ b/database/music_database.py @@ -3006,8 +3006,11 @@ class MusicDatabase: # Enrichment coverage enrichment = {} - for service, col in [('spotify', 'spotify_id'), ('musicbrainz', 'musicbrainz_id'), - ('deezer', 'deezer_id'), ('lastfm', 'lastfm_url')]: + for service, col in [('spotify', 'spotify_artist_id'), ('musicbrainz', 'musicbrainz_id'), + ('deezer', 'deezer_id'), ('lastfm', 'lastfm_url'), + ('itunes', 'itunes_artist_id'), ('audiodb', 'audiodb_id'), + ('genius', 'genius_id'), ('tidal', 'tidal_id'), + ('qobuz', 'qobuz_id')]: try: cursor.execute(f"SELECT COUNT(*) FROM artists WHERE {col} IS NOT NULL AND {col} != ''") matched = (cursor.fetchone() or [0])[0] diff --git a/webui/static/script.js b/webui/static/script.js index d29feed9..94aa8825 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -55118,6 +55118,11 @@ function _renderLibraryHealth(data) { { name: 'MusicBrainz', pct: ec.musicbrainz || 0, color: '#ba55d3' }, { name: 'Deezer', pct: ec.deezer || 0, color: '#a238ff' }, { name: 'Last.fm', pct: ec.lastfm || 0, color: '#d51007' }, + { name: 'iTunes', pct: ec.itunes || 0, color: '#fc3c44' }, + { name: 'AudioDB', pct: ec.audiodb || 0, color: '#1a9fff' }, + { name: 'Genius', pct: ec.genius || 0, color: '#ffff64' }, + { name: 'Tidal', pct: ec.tidal || 0, color: '#00ffff' }, + { name: 'Qobuz', pct: ec.qobuz || 0, color: '#4285f4' }, ]; enrichEl.innerHTML = services.map(s => `