Files
psysonic/src
Frank Stellmacher f419081a2a refactor(lucky-mix): extract pure helpers into luckyMixHelpers.ts (#686)
Move the sampling / dedup / pool-fetching helpers and their constants out
of luckyMix.ts into luckyMixHelpers.ts:

- sampleRandom, uniqueBySongId, uniqueAppend
- deriveTopArtistsFromFrequentAlbums, fetchFrequentAlbumsPool
- pickSongsForArtist, pickSongsForAlbum, pickGoodRatedSongs
- TopArtist + the MOST_PLAYED / MIX / SEED size constants

luckyMix.ts keeps the buildAndPlayLuckyMix orchestration. Verbatim
code-move. The LuckyMix page imports buildAndPlayLuckyMix unchanged.
2026-05-14 13:29:44 +02:00
..
2026-05-13 23:13:42 +03:00
2026-05-13 23:13:42 +03:00