Can the iCloud download status be accessed programmatically from the MPMediaLibrary - MPMediaItemProperty or other source?
We want to detect the source of a song so we know if it is from Apple Music (DRM), matched using iTunes Match (not DRM), purchased, or simply uploaded from a ripped CD etc.
The document About iCloud Music Library icons and status describes the download icon and status for files in the Media Library, and see them in iTunes on the Mac, but can't find a way to get this status information within the app.
You can use
MPMediaItemproperties -isCloudItemto check download status andhasProtectedAssetto check DRM protection.See MPMediaItem docs