From 242541a7bb8af859f45c258bded3beab7e13e6a8 Mon Sep 17 00:00:00 2001 From: BlackSigkill Date: Thu, 19 Feb 2026 23:45:43 +0100 Subject: [PATCH] remove qobuz bio as i can't test it --- js/music-api.js | 2 ++ js/qobuz-api.js | 18 +----------------- 2 files changed, 3 insertions(+), 17 deletions(-) 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'