I'm trying to perform a search for a song by album, artist, & title in the cases when I don't know the song's id (or if there is no isrc match)
Reading the docs, it seems that I can only search for one term at a time, but against a list of MusicCatalogSearchable Types
So my strategy would be to search for albums by name, then filter the results by artist and title.
Two questions here, really:
Is the above a good strategy, or is there a better way to do this?
For the life of my I cannot figure out from the docs, what to put in place of [MusicCatalogSearchable.Album] in the below.
var albumRequest = MusicCatalogSearchRequest(term: album.name, types: [MusicCatalogSearchable.Album])
Xcode doesn't like the above and gives the following error:
Type 'MusicCatalogSearchable' has no member 'Album'
Sadly, everything I've tried, results in an error.
When I look in MusicKit, I see the below, which seems empty to me:
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public protocol MusicCatalogSearchable : MusicItem {
}
What am I missing?
4
0
3k