Questions tagged [ituneslibrary]

The iTunes Library framework provides facilities for retrieving the properties of media items in a user’s iTunes library.

The iTunes Library framework provides facilities for retrieving the properties of media items in a user’s iTunes library.
This framework was designed to replace the iTunes XML file that developers query to fetch track and playlist metadata. iTunes library access is read-only.

#import <iTunesLibrary/ITLibrary.h>

NSError *error = nil;
ITLibrary *library = [ITLibrary libraryWithAPIVersion:@"1.0" error:&error];
if (library)
{
        NSArray *playlists = library.allPlaylists; //  <- NSArray of ITLibPlaylist
        NSArray *tracks = library.allMediaItems; //  <- NSArray of ITLibMediaItem
} 

Important: You must code sign your app in order to get information back from the iTunes Library framework.

18 questions
0
votes
2 answers

Codesigning OS X app with plugins and iTunesLibrary

I have a really weird codesigning problem. A previous, almost identical version has passed validation and been submitted to the App Store, so my codesignature isn't broken. Recently I've been trying to use the iTunesLibrary framework. This framework…
Tim
  • 4,560
  • 2
  • 40
  • 64
0
votes
1 answer

iTunes TrackID and DatabaseID persistency

I'm using a COM object to read an iTunes library (version 11, Windows). I call the GetITObjectByID function to retrieve a bunch of tracks from a list saved in a text file in a previous iTunes session. GetITObjectByID(SourceID, PlaylistID, TrackID,…
JnLlnd
  • 165
  • 1
  • 14
-1
votes
1 answer

Is it possible to update the "watched" flag of a video in the iTunes library through Xcode?

I am looking to create an App that allows me to play my iTunes Library files, however I want it to update the status of the video (e.g., watched or time remaining). Is this possible?
Ian Frost
  • 11
  • 2
1
2