From d89af7cc5b20a6202191589dc81105ba284ca719 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 4 Oct 2023 22:09:27 +0200 Subject: [PATCH] Fix multiple enumeration --- Tranga/MangaConnectors/Manganato.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/MangaConnectors/Manganato.cs b/Tranga/MangaConnectors/Manganato.cs index c8a9479..f66114a 100644 --- a/Tranga/MangaConnectors/Manganato.cs +++ b/Tranga/MangaConnectors/Manganato.cs @@ -35,8 +35,8 @@ public class Manganato : MangaConnector private Manga[] ParsePublicationsFromHtml(HtmlDocument document) { - IEnumerable searchResults = document.DocumentNode.Descendants("div").Where(n => n.HasClass("search-story-item")); - Log($"{searchResults.Count()} items."); + List searchResults = document.DocumentNode.Descendants("div").Where(n => n.HasClass("search-story-item")).ToList(); + Log($"{searchResults.Count} items."); List urls = new(); foreach (HtmlNode mangaResult in searchResults) {