public void ValidateAlbum(XmlAlbum album) { if (Config.UI.FileSystem_SearchArtworkUsingAAD) { string pathArtwork = Path.Combine(album.Location, Config.ArtworkFileNameWithoutExtension) + ".jpg"; if (!File.Exists(pathArtwork)) { DebugHelper.WriteLine("Searching for artwork --> " + album.Name); album.SaveArtworkUsingAAD(Config.AlbumArtworkDownloaderPath, pathArtwork, Config.LowResArtworkSize); } } IEnumerator e = album.Discs.GetEnumerator(); while (e.MoveNext()) { ValidateDisc(((KeyValuePair <string, XmlDisc>)e.Current).Value); } if (Config.UI.FileSystem_ArtworkJpgExport) { foreach (XmlTrack track in album.GetTracks().Where(track => track.ExportArtwork(Config))) { break; } } }
public void ValidateAlbum(XmlAlbum album) { IEnumerator e = album.Discs.GetEnumerator(); while (e.MoveNext()) { ValidateDisc(((KeyValuePair <string, XmlDisc>)e.Current).Value); } if (this.Config.UI.FileSystem_ArtworkJpgExport) { foreach (XmlTrack track in album.GetTracks()) { if (track.ExportArtwork(Config)) { break; } } } }
public void ValidateAlbum(XmlAlbum album) { IEnumerator e = album.Discs.GetEnumerator(); while (e.MoveNext()) { ValidateDisc(((KeyValuePair<string, XmlDisc>)e.Current).Value); } if (this.Config.UI.FileSystem_ArtworkJpgExport) { foreach (XmlTrack track in album.GetTracks()) { if (track.ExportArtwork(Config)) { break; } } } }