feat(listenbrainz): expose Name on SimilarArtist for M5c suggestions
This commit is contained in:
@@ -239,8 +239,11 @@ func (c *Client) SimilarRecordings(ctx context.Context, mbid string, limit int)
|
|||||||
const lbSimilarArtistsAlgorithm = "session_based_days_7500_session_30_contribution_5_threshold_15_limit_100_filter_True_skip_30"
|
const lbSimilarArtistsAlgorithm = "session_based_days_7500_session_30_contribution_5_threshold_15_limit_100_filter_True_skip_30"
|
||||||
|
|
||||||
// SimilarArtist is one entry in the /explore/similar-artists response.
|
// SimilarArtist is one entry in the /explore/similar-artists response.
|
||||||
|
// Name is captured from the LB payload so M5c can render the artist's
|
||||||
|
// name on out-of-library suggestions without an extra MusicBrainz lookup.
|
||||||
type SimilarArtist struct {
|
type SimilarArtist struct {
|
||||||
MBID string `json:"artist_mbid"`
|
MBID string `json:"artist_mbid"`
|
||||||
|
Name string `json:"name"`
|
||||||
Score float64 `json:"score"`
|
Score float64 `json:"score"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user