diff --git a/js/music-api.js b/js/music-api.js index c81a001..51ac906 100644 --- a/js/music-api.js +++ b/js/music-api.js @@ -78,6 +78,8 @@ export class MusicAPI { async getArtistBiography(id, provider = null) { const p = provider || this.getProviderFromId(id) || this.getCurrentProvider(); + if (p !== 'tidal') return null; // Biography only supported for Tidal + const api = this.getAPI(p); const cleanId = this.stripProviderPrefix(id); if (typeof api.getArtistBiography === 'function') { diff --git a/js/qobuz-api.js b/js/qobuz-api.js index 9ffaa39..6d03049 100644 --- a/js/qobuz-api.js +++ b/js/qobuz-api.js @@ -179,29 +179,13 @@ export class QobuzAPI { tracks = artistData.data.top_tracks.map((track) => this.transformTrack(track)); } - // Get biography - const biography = artistData.data.biography || artistInfo.biography || null; - - return { ...artist, albums, eps, tracks, biography }; + return { ...artist, albums, eps, tracks }; } catch (error) { console.error('Qobuz getArtist failed:', error); throw error; } } - // Qobuz biography - usually part of getArtist, but adding for API consistency - async getArtistBiography(id) { - try { - const data = await this.getArtist(id); - return { - text: data.biography, - source: 'Qobuz', - }; - } catch (e) { - return null; - } - } - // Transform Qobuz track to Tidal-like format transformTrack(track, albumData = null) { // Qobuz uses 'performer' for the main artist, not 'artist'