diff --git a/src/lib/components/views/LocalLibraryView.svelte b/src/lib/components/views/LocalLibraryView.svelte index c4ba58ac1..9ac88ef1e 100644 --- a/src/lib/components/views/LocalLibraryView.svelte +++ b/src/lib/components/views/LocalLibraryView.svelte @@ -278,9 +278,12 @@ loading = true; try { artists = await invoke('library_get_artists'); - // Fetch Qobuz artist images in background (best-effort) - const artistNames = artists.map(a => a.name); - fetchArtistImages(artistNames); + // Fetch Qobuz artist images in background (best-effort) if enabled + const fetchEnabled = localStorage.getItem('qbz-fetch-artist-images') !== 'false'; + if (fetchEnabled) { + const artistNames = artists.map(a => a.name); + fetchArtistImages(artistNames); + } } catch (err) { console.error('Failed to load artists:', err); error = String(err); diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index fc71a47d0..e353392df 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -152,6 +152,9 @@ let systemNotificationsEnabled = $state(true); let language = $state('Auto'); + // Library settings + let fetchQobuzArtistImages = $state(true); + // Last.fm integration state let lastfmConnected = $state(false); let lastfmUsername = $state(''); @@ -207,6 +210,12 @@ zoomLevel = match || '100%'; } + // Load library settings + const savedFetchArtistImages = localStorage.getItem('qbz-fetch-artist-images'); + if (savedFetchArtistImages !== null) { + fetchQobuzArtistImages = savedFetchArtistImages === 'true'; + } + // Load cache stats loadCacheStats(); @@ -872,6 +881,21 @@ + +
+

Library

+
+
+ Fetch Qobuz Artist Images + Show artist photos from Qobuz in local library +
+ { + fetchQobuzArtistImages = v; + localStorage.setItem('qbz-fetch-artist-images', String(v)); + }} /> +
+
+

Integrations

@@ -1379,6 +1403,17 @@ color: var(--text-secondary); } + .setting-with-description { + display: flex; + flex-direction: column; + gap: 2px; + } + + .setting-description { + font-size: 12px; + color: var(--text-muted); + } + .setting-value { font-size: 14px; color: var(--text-muted);