mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
The artist page, shuffle, download attribution and artist badge each spelled out the four credit paths. Reuse the shared credited song and album rows, and keep only the download-aware album queries hand-written, where the per-credit download visibility genuinely differs. The shared song and album rows use UNION ALL so the artist list filter can push its artist predicate into every branch instead of materialising a deduplicated union; callers that need a set use DISTINCT or COUNT(DISTINCT).