I need to implement this functionality.Help me.I don't wan to showing up the downloaded songs in my App.And I'm getting the some songs names like "url format".How to detect that one.Thanks.
playlistsQuery = [MPMediaQuery playlistsQuery];
playlists = [playlistsQuery collections];
NSArray *playlistsss = [myPlaylistsQuery collections];
for (MPMediaPlaylist *playlist in playlistsss) {
NSLog (@"%@", [playlist valueForProperty: MPMediaPlaylistPropertyName]);
NSArray *songs = [playlist items];
for (MPMediaItem *song in songs) {
NSString *songTitle =[song valueForProperty: MPMediaItemPropertyTitle];
NSString *str_artistName =[song valueForProperty: MPMediaItemPropertyArtist];
NSLog(@"teh artist name is --->%@",str_artistName);
playlists=[song valueForProperty: MPMediaItemPropertyTitle];
NSLog(@"the songs titles---->%@",array_playList);
}
}