Repository navigation
Personal discovery stage 3: Fresh releases (MAD-822, MAD-823) - #67
Merged
Merged
Conversation
…MAD-823)
internal/releases finds an artist's releases from the last 100 days. It
merges ListenBrainz's fresh releases (one list, read every 6 hours),
MusicBrainz release groups by first-release date, and Deezer's albums.
Releases match by artist and title, and each counts from its first
edition, so a deluxe reissue isn't new. Answers are cached a day per
artist (migration 00030), and every set's seeds and their nearest
neighbors are warmed in the background.
GET /me/discover/sets/{setId}/fresh ranks a set's recent releases:
- The seeds' come first, albums and EPs before singles, and
compilations and live albums last.
- Releases you have, want, or by blocked artists are left out.
- It looks back the set's freshDays (30, 60 or 90).
The release-tracks and release-art endpoints serve a release's songs with
previews, and Cover Art Archive covers. ADR 0017 is updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Fresh mode on a set lists recent releases near your artists. Each release card shows its cover, kind, date and why it's there. Open a card to see its songs with previews; it also has a YouTube search for the whole release. A window toggle picks 30, 60 or 90 days. In Both mode, Fresh cards are mixed into the deep-cuts feed with a New badge. The song row is shared with the map's artist sheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage 3 of Phase 12 (MAD-814): the Fresh feed, "new releases for you". It shows recent albums, EPs and singles by a set's seed artists and their nearest neighbors.
MAD-822: Recent releases lookup
internal/releasespackage. It merges three sources by artist and normalized title:album,ep,single,compilationandlive.artist_releases, or an hour if a source failed (migration 00030, which also addsdiscovery_sets.fresh_days).MAD-823: Fresh feed
GET /me/discover/sets/{setId}/freshreturns the feed.GET /me/discover/release-tracksreturns a release's songs from Deezer, with previews.GET /me/discover/release-art/{mbid}serves Cover Art Archive covers for releases Deezer doesn't have.freshDayssetting (30, 60 or 90; default 60).HasRelease), want, or by an artist you blocked are left out. There are at most 3 per artist and 100 in all.partial. The page reloads it while it fills in.Testing
go test ./...,golangci-lint(0 issues), and webpnpm test(252), typecheck and lint all pass.partialafter 6 seconds.TestGamesAPIfailed once in a full run and then passed 5 of 5 runs on its own, plus the final full run. It's unrelated to this change and looks flaky.🤖 Generated with Claude Code