

ITuensArtistlbl.Text = artist // This is just UI stuff String Album = () // This is the album of current songthats playing string Artist = () // Artist of current playing song Private void iTunes_OnPlayerPlayEvent( object o) But perhaps somebody could tell me why setting the artwork in itunes doest work? It sayst here is a COM error. It does Download the art to the C:\ drive pretty flawlessly. This line right here is waht causing the problem.ĬurrTrack.AddArtworkFromFile("C:\\" + currTrack.Album + ".jpg") Private void button1_Click( object sender, EventArgs e) c = new () Ĭ.DownloadFile(result, " C:\\" + albumtitle + ". ProductInfo productInfo = search.KeywordSearchRequest(req) KeywordRequest req = new KeywordRequest() ĪmazonSearchService search = new AmazonSearchService() String request = artistname + " " + albumtitle Private static void GetArt( string artistname, string albumtitle) currTrack.AddArtworkFromFile("C:\\" + " " + ".jpg") GetArt(currTrack.Artist, currTrack.Album) if track is a fiile, then get the file location on the drive. get the track from the current tracklist Private void GetTracks(IITPlaylist playlist)įor ( int currTrackIndex = 1 currTrackIndex IITLibraryPlaylist mainLibrary = tunes.LibraryPlaylist Hope you find this useful, any comments/feedback appreciated. get list of tracks from selected playlist string playlist = () įoreach (IITPlaylist pl in )

Private void comboBox1_SelectedIndexChanged( object sender, IITFileOrCDTrack file = (IITFileOrCDTrack)currTrack įileInfo fi = new FileInfo(file.Location) if (currTrack.Kind = ITTrackKind.ITTrackKindFile) if track is a fiile, then get the file // location on the drive. IITTrackCollection tracks = playlist.Tracks ĬurrTrackIndex <= numTracks currTrackIndex++) get the collection of tracks from the playlist getthe tracks from the the specified playlist private void GetTracks(IITPlaylist playlist) set the datagridview1 datasource to the datatable. get list of all playlists defined in // Itunes and add them to the combobox foreach (IITPlaylist pl in ) IITLibraryPlaylist mainLibrary = itunes.LibraryPlaylist Private void Form1_Load( object sender, EventArgs e) ITunesApp itunes = new iTunesLib.iTunesApp() initialize Itunes application connection
