Compare commits
No commits in common. "3456fc656404ce497e669df26210e06603e106ed" and "0b9948e3671f978613165eec3de6333c5ea5b6f2" have entirely different histories.
3456fc6564
...
0b9948e367
@ -82,31 +82,17 @@ public class ManhuaPlus : MangaConnector
|
|||||||
HtmlNode titleNode = document.DocumentNode.SelectSingleNode("//h1");
|
HtmlNode titleNode = document.DocumentNode.SelectSingleNode("//h1");
|
||||||
string sortName = titleNode.InnerText.Replace("\n", "");
|
string sortName = titleNode.InnerText.Replace("\n", "");
|
||||||
|
|
||||||
|
HtmlNode[] authorsNodes = document.DocumentNode
|
||||||
|
.SelectNodes("//a[contains(@href, 'https://manhuaplus.org/authors/')]")
|
||||||
|
.ToArray();
|
||||||
List<string> authors = new();
|
List<string> authors = new();
|
||||||
try
|
foreach (HtmlNode authorNode in authorsNodes)
|
||||||
{
|
authors.Add(authorNode.InnerText);
|
||||||
HtmlNode[] authorsNodes = document.DocumentNode
|
|
||||||
.SelectNodes("//a[contains(@href, 'https://manhuaplus.org/authors/')]")
|
|
||||||
.ToArray();
|
|
||||||
foreach (HtmlNode authorNode in authorsNodes)
|
|
||||||
authors.Add(authorNode.InnerText);
|
|
||||||
}
|
|
||||||
catch (ArgumentNullException e)
|
|
||||||
{
|
|
||||||
Log("No authors found.");
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
HtmlNode[] genreNodes = document.DocumentNode
|
||||||
{
|
.SelectNodes("//a[contains(@href, 'https://manhuaplus.org/genres/')]").ToArray();
|
||||||
HtmlNode[] genreNodes = document.DocumentNode
|
foreach (HtmlNode genreNode in genreNodes)
|
||||||
.SelectNodes("//a[contains(@href, 'https://manhuaplus.org/genres/')]").ToArray();
|
tags.Add(genreNode.InnerText.Replace("\n", ""));
|
||||||
foreach (HtmlNode genreNode in genreNodes)
|
|
||||||
tags.Add(genreNode.InnerText.Replace("\n", ""));
|
|
||||||
}
|
|
||||||
catch (ArgumentNullException e)
|
|
||||||
{
|
|
||||||
Log("No genres found");
|
|
||||||
}
|
|
||||||
|
|
||||||
string yearNodeStr = document.DocumentNode
|
string yearNodeStr = document.DocumentNode
|
||||||
.SelectSingleNode("//aside//i[contains(concat(' ',normalize-space(@class),' '),' fa-clock ')]/../span").InnerText.Replace("\n", "");
|
.SelectSingleNode("//aside//i[contains(concat(' ',normalize-space(@class),' '),' fa-clock ')]/../span").InnerText.Replace("\n", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user