2
0

Compare commits

...

2 Commits

Author SHA1 Message Date
75eea8c761 Merge branch 'refs/heads/cuttingedge-merge-ServerV2' into Server-V2 2024-08-26 20:47:19 +02:00
3122aa32e8 fix #223 wrong selector 2024-08-26 20:46:50 +02:00

View File

@ -131,9 +131,9 @@ public class Manganato : MangaConnector
string pattern = "MMM dd,yyyy HH:mm"; string pattern = "MMM dd,yyyy HH:mm";
HtmlNode oldestChapter = document.DocumentNode HtmlNode oldestChapter = document.DocumentNode
.SelectNodes("//chapter-time[contains(concat(' ',normalize-space(@class),' '),' chapter-time ')]").MaxBy( .SelectNodes("//span[contains(concat(' ',normalize-space(@class),' '),' chapter-time ')]").MaxBy(
node => DateTime.ParseExact(node.GetAttributeValue("title", "Dec 31 2400, 23:59"), pattern, node => DateTime.ParseExact(node.GetAttributeValue("title", "Dec 31 2400, 23:59"), pattern,
CultureInfo.InvariantCulture))!; CultureInfo.InvariantCulture).Millisecond)!;
int year = DateTime.ParseExact(oldestChapter.GetAttributeValue("title", "Dec 31 2400, 23:59"), pattern, int year = DateTime.ParseExact(oldestChapter.GetAttributeValue("title", "Dec 31 2400, 23:59"), pattern,