Commit graph

37 commits

Author SHA1 Message Date
Admin
cf718f3ff2 Working proxy integration with api.zarz.moe and lossless quality enforcement 2026-05-18 12:12:46 +07:00
p1nkhamster
977c7d0483 fix(hifi): use Tidal v2 API for artist biography
The v1 endpoint (api.tidal.com/v1/artists/{id}/bio) returns 404.
Switch getArtistBiography to the v2 OpenAPI endpoint with
include=biography, extracting the biography from the included
resources in the JSON:API response.

Also restore text and source on JsonApiIncludeAttributes, which
were dropped when the v2 artist fix was reverted in b528720.
2026-04-24 11:51:27 +02:00
uimaxbai
e2ffbf904f just fix that semicolon 2026-04-22 21:41:53 +01:00
uimaxbai
fa8fc6be15 Revert "style: auto-fix linting issues"
This reverts commit e1b0b403fa.
2026-04-22 21:28:43 +01:00
binimum
e1b0b403fa style: auto-fix linting issues 2026-04-22 20:08:44 +00:00
uimaxbai
9138ec5289 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 <noreply@anthropic.com>
2026-04-22 20:30:43 +01:00
Samidy
b528720e8b
Revert "Fix v2 artists API: correct data access paths" 2026-04-19 01:49:00 +03:00
Daniel
00efcb8017 Fix v2 artists API: correct data access paths 2026-04-18 16:33:11 -05:00
binimum
f408d75666 style: auto-fix linting issues 2026-04-18 13:12:53 +00:00
uimaxbai
c2b3f7312e fix streaming for now 2026-04-18 12:16:07 +01:00
uimaxbai
6ddb411b94 Revert 2026-04-18 10:04:31 +01:00
uimaxbai
d4f6c5911f Revert "style: auto-fix linting issues"
This reverts commit 4b6f81b2ec.
2026-04-18 10:02:34 +01:00
binimum
4b6f81b2ec style: auto-fix linting issues 2026-04-17 21:40:59 +00:00
uimaxbai
274baa2a79 fix EVERYTHING 2026-04-17 22:40:15 +01:00
Samidy
4f57e42d26 School Girl Sashimi 2026-04-17 02:21:19 +03:00
Samidy
5d8ac7a7e2 nvm 2026-04-17 01:26:24 +03:00
Samidy
b83db38b52 reroll client id and secret for tidal API 2026-04-17 01:17:44 +03:00
edideaur
edbec62a55 fix lockfiles 2026-04-10 16:20:04 +03:00
Daniel
3ecaa3c74a Add typed interfaces for HiFi.ts route returns 2026-04-05 20:08:08 +03:00
Daniel
648e47e1d8 fix(linting): fix js linting issues 2026-04-04 01:37:47 +03:00
Daniel
a282b37d88 refactor(hifi): add getArtistBiography 2026-04-04 01:37:47 +03:00
Daniel
3a28ef54d1 fix(hifi): remove extra await 2026-04-04 01:37:47 +03:00
Daniel
5504e004cc fix(hifi): fix tokenExpiry assignment 2026-04-04 01:37:47 +03:00
Daniel
b94a832d2e feat(vitest): add vitest config and tests
Add tests for HiFi, ffmpeg, and download api functions.
2026-04-01 12:46:30 -05:00
Daniel
2440939f4b refactor(hifi): update HiFi.ts to add trackManifests route and refactor 2026-03-23 13:42:03 -05:00
Daniel
21cbfcdbf4 fix(hifi): throw errors instead of returning json with the error 2026-03-23 09:35:04 -05:00
binimum
d9878596e2 style: auto-fix linting issues 2026-03-22 20:13:27 +00:00
binimum
d783642401
feat: add Atmos support, use new API endpoint, streamline API caching 2026-03-22 20:08:30 +00:00
edidealt
7e16dc23c2
Merge pull request #380 from DanTheMan827/singleton
Convert classes to singleton pattern
2026-03-22 03:36:13 +02:00
edidealt
6f8b479d0f infinite track playing for popular tracks 2026-03-21 23:25:16 +00:00
Daniel
2fdd169ba0 refactor(Hifi): convert to singleton 2026-03-21 18:05:09 -05:00
DanTheMan827
5c5ea904c8 style: auto-fix linting issues 2026-03-20 23:00:41 +00:00
Daniel
4f0d95bf42
refactor(hifi): update localStorage and token handling
Modified token encoding to use globalThis and added a setToken method.
2026-03-20 17:13:23 -05:00
Daniel
1bd895093b fix(HiFi): enhance token fetching 2026-03-20 14:32:30 -05:00
Daniel
5d697760d0 fix(HiFi.ts): cache token 2026-03-20 13:19:15 -05:00
Daniel
5ac4d23199 fix(HiFi.ts): ensure only one token is fetched
If multiple calls to the HiFi methods were called at once, you could potentially have ended up with multiple simultaneous token api calls
2026-03-20 13:12:40 -05:00
Daniel
47b8c36594 fix(api): use direct queries when possible 2026-03-20 11:38:31 -05:00