From 05190bc9e265f8464f3e2e6950bc65bfd59f0e66 Mon Sep 17 00:00:00 2001 From: db-2001 Date: Tue, 26 Mar 2024 18:16:41 -0400 Subject: [PATCH] Holy moly a fix for Mangasee --- Tranga/MangaConnectors/Mangasee.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/MangaConnectors/Mangasee.cs b/Tranga/MangaConnectors/Mangasee.cs index 3a0efde..c354d1c 100644 --- a/Tranga/MangaConnectors/Mangasee.cs +++ b/Tranga/MangaConnectors/Mangasee.cs @@ -199,8 +199,8 @@ public class Mangasee : MangaConnector string? volumeNumber = m.Groups[2].Success ? m.Groups[2].Value : "1"; string chapterNumber = m.Groups[1].Value; - url = string.Concat(Regex.Match(url, @"(.*)-page-[0-9]+(\.html)").Groups.Values.Select(v => v.Value)); - chapters.Add(new Chapter(manga, "", volumeNumber, chapterNumber, url)); + string chapterUrl = Regex.Replace(url, @"-page-[0-9]+(\.html)", ".html"); + chapters.Add(new Chapter(manga, "", volumeNumber, chapterNumber, chapterUrl)); } //Return Chapters ordered by Chapter-Number