Hi! I get personal recommendations MusicItemCollection<MusicPersonalRecommendation> using this code:
func getRecommendations() async throws -> MusicItemCollection<MusicPersonalRecommendation> {
let request = MusicPersonalRecommendationsRequest()
let response = try await request.response()
let recommendations = response.recommendations
return recommendations
}
However, all recommendations contain no more than 12 MusicItem's,
while the Music.app application provides much more for some recommendations, for example, for the You recently listened recommendation, the Music.app application displays 40 items. Each recommendation has an items
property that contains a collection of musical items MusicItemCollection<MusicPersonalRecommendation.Item>,
the hasNextBatch
property for these collections is always false.
I expected that for some collections loading of new items would be available. Please tell me if I'm doing something wrong or is this a MusicKit bug?
Thank you!