Reputation: 6429
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.
Upvotes: 2
Views: 570
Reputation: 31
You can use MPMediaItem
properties - isCloudItem
to check download status and hasProtectedAsset
to check DRM protection.
Upvotes: 2