I am trying to get the name of the playlist’s curator using curatorName
property of Playlist. It is of the type optional String.
I've tried many playlists, but curatorName
always returns nil
.
Please help. Thank you
Hello @RahulRS ,
Thanks for providing more details on how you're fetching these playlists.
Here, you are loading playlists from the Get All Library Playlists endpoint from Apple Music API, and that returns a resource collection of what is defined in Apple Music API as LibraryPlaylists. That type does not support the curatorName
property, as you can see in the list of attributes for LibraryPlaylists.
That is why you're getting nil
from the curatorName property in MusicKit's Playlist.
So this behaves exactly as designed. If you think curatorName
should be made available in Apple Music API's LibraryPlaylists, then I recommend you file an enhancement request for that in Feedback Assistant.
I hope this helps.
Best regards,