fix(playlists): a restored playlist draws its collage again instead of showing a broken image (#8105)
A collage is a file in the data directory, which the backup doesn't carry, but playlists.cover_path travelled, so a restored playlist pointed at a file that wasn't there and its tile showed a broken image until someone edited it. - The backup leaves cover_path out, so a restored playlist starts with none. - The nightly rebuild (and the catch-up at startup) draws each person's own playlist collages again from their albums' current covers, so one drawn before the art arrived fills in later. - The cover endpoint draws a collage whose file has gone missing, rather than answering 404. - SetPlaylistCover only bumps updated_at when the path changes, so a redraw isn't a change to the playlist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -241,6 +241,7 @@ func (s *Scheduler) rebuildUserDaily(ctx context.Context, userID pgtype.UUID, no
|
||||
s.logger.Warn("scheduler: taste profile rebuild failed",
|
||||
"user_id", uuidStringPL(userID), "err", err)
|
||||
}
|
||||
RedrawUserPlaylistCollages(ctx, s.pool, s.logger, userID, s.dataDir)
|
||||
if err := BuildSystemPlaylists(ctx, s.pool, s.logger, userID, now, s.dataDir); err != nil {
|
||||
s.logger.Warn("scheduler: build failed",
|
||||
"user_id", uuidStringPL(userID), "err", err)
|
||||
|
||||
Reference in New Issue
Block a user