public void ValidateTrack(XmlTrack track) { if (this.Config.UI.Tracks_ArtworkFill) { track.EmbedArtwork(this.Config, this.Report); } if (this.Config.UI.Tracks_AlbumArtistFill) { track.FillAlbumArtist(Albums, this.Report); } if (this.Config.UI.Tracks_GenreFill) { track.FillGenre(Discs, this.Report); } if (this.Config.UI.Tracks_TrackCountFill) { track.FillTrackCount(Albums, Discs, this.Report); } // do checks after updating tracks if (this.Config.UI.Checks_MissingTags) { track.CheckMissingTags(this.Report); } if (this.Config.UI.Checks_ArtworkLowRes) { track.CheckLowResArtwork(this.Config, this.Report); } // write tags if modified if (track.IsModified) { track.WriteTagsToFile(); } Worker.ReportProgress(this.Progress, track); }
public void ValidateTrack(XmlTrack track) { if (this.Config.UI.Tracks_ArtworkFill) track.EmbedArtwork(this.Config, this.Report); if (this.Config.UI.Tracks_AlbumArtistFill) track.FillAlbumArtist(Albums, this.Report); if (this.Config.UI.Tracks_GenreFill) track.FillGenre(Discs, this.Report); if (this.Config.UI.Tracks_TrackCountFill) track.FillTrackCount(Albums, Discs, this.Report); // do checks after updating tracks if (this.Config.UI.Checks_MissingTags) track.CheckMissingTags(this.Report); if (this.Config.UI.Checks_ArtworkLowRes) track.CheckLowResArtwork(this.Config, this.Report); // write tags if modified if (track.IsModified) track.WriteTagsToFile(); Worker.ReportProgress(this.Progress, track); }