library: align artist counts with credited songs

Artist badges and play rankings only counted album credits, while the artist
page, shuffle queue and download attribution already included track credits.
Derive albumCount and the artist plays from the same four-way credit union,
count lead ids that the server omits from the plural refs, and bump the song's
credited artists on a local scrobble even when the track has no album.

Sort the downloaded artist list by the downloaded album count it displays
instead of the synced total, and backfill the artist totals on upgrade so the
fix applies before the next sync.
This commit is contained in:
austinried
2026-10-18 14:25:07 +00:00
parent 916da72339
commit e0cfba489e
7 changed files with 2199 additions and 39 deletions
File diff suppressed because it is too large Load Diff