From 42c287618835b732320e7493f4e6d54afafad63d Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 16 Jul 2023 20:22:33 +0200 Subject: [PATCH] Mangakatana chapter num fix --- Tranga/Connectors/MangaKatana.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Connectors/MangaKatana.cs b/Tranga/Connectors/MangaKatana.cs index 38b3f64..12f1e8c 100644 --- a/Tranga/Connectors/MangaKatana.cs +++ b/Tranga/Connectors/MangaKatana.cs @@ -169,7 +169,7 @@ public class MangaKatana : Connector string fullString = chapterInfo.Descendants("a").First().InnerText; string? volumeNumber = fullString.Contains("Vol.") ? fullString.Replace("Vol.", "").Split(' ')[0] : null; - string? chapterNumber = fullString.Split(':')[0].Split("Chapter ")[1].Replace('-', '.'); + string? chapterNumber = fullString.Split(':')[0].Split("Chapter ")[1].Split(" ")[0].Replace('-', '.'); string chapterName = string.Concat(fullString.Split(':')[1..]); string url = chapterInfo.Descendants("a").First() .GetAttributeValue("href", "");