From d4eb72cd99127ac6f1b68d51e159af3ed43fd19c Mon Sep 17 00:00:00 2001 From: Andy Maesen Date: Fri, 23 Jun 2023 22:14:27 +0200 Subject: [PATCH] Required changes --- Tranga/Connectors/MangaKatana.cs | 5 +---- Tranga/TaskManager.cs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Tranga/Connectors/MangaKatana.cs b/Tranga/Connectors/MangaKatana.cs index 8abbc94..c3649ed 100644 --- a/Tranga/Connectors/MangaKatana.cs +++ b/Tranga/Connectors/MangaKatana.cs @@ -74,10 +74,7 @@ public class MangaKatana : Connector string[] authors = Array.Empty(); string originalLanguage = ""; - //HtmlNode infoNode = document.DocumentNode.Descendants("div").First(d => d.HasClass("story-info-right")); HtmlNode infoNode = document.DocumentNode.SelectSingleNode("//*[@id='single_book']"); - - //string sortName = infoNode.Descendants("h1").First().InnerText; string sortName = infoNode.Descendants("h1").First(n => n.HasClass("heading")).InnerText; HtmlNode infoTable = infoNode.SelectSingleNode("//*[@id='single_book']/div[2]/div/ul"); @@ -165,7 +162,7 @@ public class MangaKatana : Connector .GetAttributeValue("href", ""); ret.Add(new Chapter(chapterName, volumeNumber, chapterNumber, url)); } - ret.Reverse(); + return ret; } diff --git a/Tranga/TaskManager.cs b/Tranga/TaskManager.cs index c510d79..5f45bc5 100644 --- a/Tranga/TaskManager.cs +++ b/Tranga/TaskManager.cs @@ -28,7 +28,7 @@ public class TaskManager new MangaDex(settings.downloadLocation, settings.coverImageCache, logger), new Manganato(settings.downloadLocation, settings.coverImageCache, logger), new Mangasee(settings.downloadLocation, settings.coverImageCache, logger), - new MangaKatana(settings.downloadLocation, settings.coverImageCache, logger) + new MangaKatana(settings.downloadLocation, settings.coverImageCache, logger) }; this.settings = settings;