iTunes LibraryEditor
iTunes Library Editor is a .NET 2.0 dll which can edit an iTunes library file (*.itl) without using the Apple iTunes SDK.
Whats wrong with the iTunes SDK?
- Its slow
- iTunes starts and shows its main window.
- iTunes may begin to synchronize connected iPods, download podcasts and artwork, display modal dialogs and take the focus from your application.
- iTunes continues to run after you've finished.
By contrast, iTunes LibraryEditor is:
- Very quick to load library files (under a second instead of 5-6 seconds for iTunes SDK)
- Simple to use - add and remove both tracks and playlists with a couple of lines of code
- Has no need for iTunes to be running
- Tested with iTunes 6, 7 and 8
Usage example:
// Load the default iTunes library
iTunesLibrary library = new iTunesLibrary();
// Add a track to the iTunes library:
Track newTrack = library.Tracks.Add("c:\\music\\mytrack.mp3");
// Add a playlist to the iTunes library:
Playlist newPlaylist = library.Playlists.Add("My new list");
newPlaylist.AddTrack(newTrack);
library.SaveChanges();
Full documentation
here