mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-14 04:13:18 +02:00
weebcentral no commas in tags
This commit is contained in:
parent
c696c38983
commit
64b17aea7a
@ -75,12 +75,12 @@ public class Weebcentral : MangaConnector
|
|||||||
string sortName = titleNode?.InnerText ?? "Undefined";
|
string sortName = titleNode?.InnerText ?? "Undefined";
|
||||||
|
|
||||||
HtmlNode[] authorsNodes =
|
HtmlNode[] authorsNodes =
|
||||||
document.DocumentNode.SelectNodes("//ul/li[strong/text() = 'Author(s): ']/span")?.ToArray() ?? [];
|
document.DocumentNode.SelectNodes("//ul/li[strong/text() = 'Author(s): ']/span").ToArray();
|
||||||
List<Author> authors = authorsNodes.Select(n => new Author(n.InnerText)).ToList();
|
List<Author> authors = authorsNodes.Select(n => new Author(n.InnerText)).ToList();
|
||||||
|
|
||||||
HtmlNode[] genreNodes =
|
HtmlNode[] genreNodes =
|
||||||
document.DocumentNode.SelectNodes("//ul/li[strong/text() = 'Tags(s): ']/span")?.ToArray() ?? [];
|
document.DocumentNode.SelectNodes("//ul/li[strong/text() = 'Tags(s): ']/span").ToArray();
|
||||||
List<MangaTag> tags = genreNodes.Select(n => new MangaTag(n.InnerText)).ToList();
|
List<MangaTag> tags = genreNodes.Select(n => new MangaTag(n.InnerText.EndsWith(',') ? n.InnerText.Substring(0,n.InnerText.Length-1) : n.InnerText)).ToList();
|
||||||
|
|
||||||
HtmlNode statusNode = document.DocumentNode.SelectSingleNode("//ul/li[strong/text() = 'Status: ']/a");
|
HtmlNode statusNode = document.DocumentNode.SelectSingleNode("//ul/li[strong/text() = 'Status: ']/a");
|
||||||
string statusText = statusNode?.InnerText ?? "";
|
string statusText = statusNode?.InnerText ?? "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user