From 9138ec5289bb0095029ffdd782b3c30d9660dd26 Mon Sep 17 00:00:00 2001 From: uimaxbai <61615730+uimaxbai@users.noreply.github.com> Date: Wed, 22 Apr 2026 20:30:43 +0100 Subject: [PATCH 1/3] Restore extension AudioContext features and fix track recommendations - Add crossorigin="anonymous" for audio/video elements in extension context only (required for createMediaElementSource in Web Audio API) - Restore EQ, binaural DSP, M/S processing, and audio graph wiring for extension users - Fix recommended tracks showing "Unknown Artist" and no album cover: - v2 OpenAPI artist endpoint doesn't include track details in `included`, so now fetches v1 /artists/{id}/toptracks in parallel for complete TidalTrack objects - v1 tracks carry album.cover UUID and full artist/artists arrays directly - Fix prepareTrack() to populate artists[] from artist when missing (and vice versa) - Fix relationship data polymorphism (single ref vs array) in getSimilarArtists/Albums - Add artistBiographies lookup key for biography included items Co-Authored-By: Claude Sonnet 4.6 --- index.html | 6 ++ js/HiFi.ts | 137 +++++++++++---------------- js/api.js | 4 + js/audio-context.js | 222 +++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 284 insertions(+), 85 deletions(-) diff --git a/index.html b/index.html index 25404b3..e7ce3ce 100644 --- a/index.html +++ b/index.html @@ -117,6 +117,12 @@ +