How to find Explicit Songs on Apple Music User Playlists iOS?

心不动则不痛 提交于 2019-12-13 20:09:06

问题


I am fetching all Apple Music Playlists and Track lists into my App using AppleMusicAPI (Refers https://developer.apple.com/documentation/applemusicapi). Also In my App's Setting screen I have added a UISwitch to allow Explicit contents of Apple Music.

I can able to get Explicit songs in below Search API and Top Tracks API using attributes.contentRating JSON key.

Top Charts API: https://api.music.apple.com/v1/catalog/us/charts?limit=20&offset=0&types=songs

Search API: https://api.music.apple.com/v1/catalog/us/search?limit=20&offset=0&term=Ana&types=songs

Can anyone suggest me how can I get to know wether the song is Explicit or not for UserPlaylist songs? Thank you!

来源:https://stackoverflow.com/questions/55235773/how-to-find-explicit-songs-on-apple-music-user-playlists-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!