mirror of
https://github.com/C9Glax/tranga.git
synced 2025-03-14 17:13:02 +01:00
Update Manganato.cs
i found out, i am stupid
This commit is contained in:
parent
49dab9a670
commit
70391c83c1
@ -167,8 +167,9 @@ public class Manganato : MangaConnector
|
||||
foreach (HtmlNode chapterInfo in chapterList.Descendants("div").Where(x => x.HasClass("row")))
|
||||
{
|
||||
string url = chapterInfo.Descendants("a").First().GetAttributeValue("href", "");
|
||||
string chapterName = chapterInfo.Descendants("a").First().GetAttributeValue("title", "");
|
||||
string chapterNumber = Regex.Match(chapterName, @"Chapter ([0-9]+(\.[0-9]+)*)").Groups[1].Value;
|
||||
var name = chapterInfo.Descendants("a").First().InnerText.Trim();
|
||||
string chapterName = nameRex.Match(name).Groups[3].Value;
|
||||
string chapterNumber = Regex.Match(name, @"Chapter ([0-9]+(\.[0-9]+)*)").Groups[1].Value;
|
||||
string? volumeNumber = Regex.Match(chapterName, @"Vol\.([0-9]+)").Groups[1].Value;
|
||||
if (string.IsNullOrWhiteSpace(volumeNumber))
|
||||
volumeNumber = "0";
|
||||
|
Loading…
x
Reference in New Issue
Block a user