Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/ewanc26/pkgs. my pkgs monorepo docs.ewancroft.uk/projects/pkgs
monorepo nix
Something went wrong. Try again.
fix(tourmaline): dedupe track play counts by track+artist, not name alone master
trackPlayCounts was rekeyed to just the track title, discarding the artist half of the composite key used everywhere else (trackFirstListen, trackCounts). Two different artists' same-titled tracks (a very common occurrence — "Intro", "Home", "Breathe", ...) silently overwrote each other's count, so buildDiscoveredTracks could show a completely unrelated artist's play count next to a "recently discovered" track. Now keyed by the same trackKey ("name|||artist") used by trackFirstListen, and discovery.ts looks up by that key instead of the name it had already parsed back out of it.
Author Ewan Croft Date (Aug 13, 2026, 1:44 PM UTC) Commit 98ebb959 98ebb95939c27247b584bf485996bac370c3eb55 Parent 1a05b0cc 1a05b0cc7543c762a1fff7bb4a4f30ba18794a54