public static void ReloadMetaData() { Shared.Meta.List.Clear(); foreach (GAlbum a in Albums.Values) { if (a.isNsfw) { Shared.Meta.List.Add("/album/" + a.id, new Shared.Meta { Name = a.name + " (Nsfw)", Desc = $"Album with {Images.Values.Where(x => x.album == a.id).Count()} images." }); } else { string image = ""; if (!string.IsNullOrEmpty(a.thumbnailImage) && Images.TryGetValue(a.thumbnailImage, out GImage Thumb)) { image = Thumb.GetImage(imageType.Thumbnail); } Shared.Meta.List.Add("/album/" + a.id, new Shared.Meta { Name = a.name, Image = image, Desc = $"Album with {Images.Values.Where(x => x.album == a.id).Count()} images." }); } } }