We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93cfddd commit b8c624fCopy full SHA for b8c624f
Tranga/MangaConnectors/AsuraToon.cs
@@ -55,8 +55,8 @@ public override Manga[] GetManga(string publicationTitle = "")
55
private Manga[] ParsePublicationsFromHtml(HtmlDocument document)
56
{
57
HtmlNodeCollection mangaList = document.DocumentNode.SelectNodes("//a[starts-with(@href,'series')]");
58
- if (mangaList.Count < 1)
59
- return Array.Empty<Manga>();
+ if (mangaList is null || mangaList.Count < 1)
+ return [];
60
61
IEnumerable<string> urls = mangaList.Select(a => $"https://asuracomic.net/{a.GetAttributeValue("href", "")}");
62
0 commit comments