mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 11:27:32 +01:00
Fix Mangaworld empty search-result crash
This commit is contained in:
parent
656e62628e
commit
9319aa7d1f
@ -34,6 +34,9 @@ public class Mangaworld: MangaConnector
|
|||||||
|
|
||||||
private Manga[] ParsePublicationsFromHtml(HtmlDocument document)
|
private Manga[] ParsePublicationsFromHtml(HtmlDocument document)
|
||||||
{
|
{
|
||||||
|
if (!document.DocumentNode.SelectSingleNode("//div[@class='comics-grid']").ChildNodes
|
||||||
|
.Any(node => node.HasClass("entry")))
|
||||||
|
return Array.Empty<Manga>();
|
||||||
|
|
||||||
List<string> urls = document.DocumentNode
|
List<string> urls = document.DocumentNode
|
||||||
.SelectNodes(
|
.SelectNodes(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user