mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 07:15:47 +00:00
1ec27f9aff
fetchTracksForSource() iterated over an artist's albums with sequential `await getAlbum(...)` inside a for-loop. A 50-album artist sync stalled for ~7 seconds of round-trips before any device write started. Switch to Promise.all(albums.map(...)). Same pattern ArtistDetail.tsx already uses for "Play All" without issues — Navidrome handles parallel getAlbum requests fine. Per-album errors fall back to an empty song list rather than aborting the whole sync. Co-authored-by: Psychotoxical <dev@psysonic.app> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>