2
0

Fix multiple enumeration

This commit is contained in:
glax 2023-10-04 22:09:27 +02:00
parent 31a0c6ffb2
commit d89af7cc5b

View File

@ -35,8 +35,8 @@ public class Manganato : MangaConnector
private Manga[] ParsePublicationsFromHtml(HtmlDocument document)
{
IEnumerable<HtmlNode> searchResults = document.DocumentNode.Descendants("div").Where(n => n.HasClass("search-story-item"));
Log($"{searchResults.Count()} items.");
List<HtmlNode> searchResults = document.DocumentNode.Descendants("div").Where(n => n.HasClass("search-story-item")).ToList();
Log($"{searchResults.Count} items.");
List<string> urls = new();
foreach (HtmlNode mangaResult in searchResults)
{