public void UpdateInfo (TrackInfo track)
{
if (track is AppleDeviceTrackInfo) {
throw new ArgumentException ("Shouldn't update an AppleDeviceTrackInfo from an AppleDeviceTrackInfo");
}
IsCompilation = track.IsCompilation ;
AlbumArtist = track.AlbumArtist;
AlbumTitle = track.AlbumTitle;
ArtistName = track.ArtistName;
BitRate = track.BitRate;
SampleRate = track.SampleRate;
Bpm = track.Bpm;
Comment = track.Comment;
Composer = track.Composer;
Conductor = track.Conductor;
Copyright = track.Copyright;
DateAdded = track.DateAdded;
DiscCount = track.DiscCount;
DiscNumber = track.DiscNumber;
Duration = track.Duration;
FileSize = track.FileSize;
Genre = track.Genre;
Grouping = track.Grouping;
LastPlayed = track.LastPlayed;
LastSkipped = track.LastSkipped;
PlayCount = track.PlayCount;
Rating = track.Rating;
ReleaseDate = track.ReleaseDate;
SkipCount = track.SkipCount;
TrackCount = track.TrackCount;
TrackNumber = track.TrackNumber;
TrackTitle = track.TrackTitle;
Year = track.Year;
MediaAttributes = track.MediaAttributes;
ArtistNameSort = track.ArtistNameSort;
AlbumTitleSort = track.AlbumTitleSort;
AlbumArtistSort = track.AlbumArtistSort;
TrackTitleSort = track.TrackTitleSort;
var podcast_info = track.ExternalObject as IPodcastInfo;
if (podcast_info != null) {
description = podcast_info.Description;
ReleaseDate = podcast_info.ReleaseDate;
}
mimetype = track.MimeType;
}