From a89a526fdafe67d564c22039215c0731b58a62bd Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 26 Aug 2023 02:42:31 +0200 Subject: [PATCH] Default language GetChapters: en --- Tranga/MangaConnectors/MangaConnector.cs | 2 +- Tranga/MangaConnectors/MangaDex.cs | 2 +- Tranga/MangaConnectors/MangaKatana.cs | 2 +- Tranga/MangaConnectors/Manganato.cs | 2 +- Tranga/MangaConnectors/Mangasee.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tranga/MangaConnectors/MangaConnector.cs b/Tranga/MangaConnectors/MangaConnector.cs index 9d28d8f..69f89e5 100644 --- a/Tranga/MangaConnectors/MangaConnector.cs +++ b/Tranga/MangaConnectors/MangaConnector.cs @@ -39,7 +39,7 @@ public abstract class MangaConnector : GlobalBase /// Publication to get Chapters for /// Language of the Chapters /// Array of Chapters matching Publication and Language - public abstract Chapter[] GetChapters(Publication publication, string language = ""); + public abstract Chapter[] GetChapters(Publication publication, string language="en"); /// /// Updates the available Chapters of a Publication diff --git a/Tranga/MangaConnectors/MangaDex.cs b/Tranga/MangaConnectors/MangaDex.cs index 2c25ba8..edd362f 100644 --- a/Tranga/MangaConnectors/MangaDex.cs +++ b/Tranga/MangaConnectors/MangaDex.cs @@ -150,7 +150,7 @@ public class MangaDex : MangaConnector return publications.ToArray(); } - public override Chapter[] GetChapters(Publication publication, string language = "") + public override Chapter[] GetChapters(Publication publication, string language="en") { Log($"Getting chapters {publication}"); const int limit = 100; //How many values we want returned at once diff --git a/Tranga/MangaConnectors/MangaKatana.cs b/Tranga/MangaConnectors/MangaKatana.cs index 7a1b7a9..f702953 100644 --- a/Tranga/MangaConnectors/MangaKatana.cs +++ b/Tranga/MangaConnectors/MangaKatana.cs @@ -137,7 +137,7 @@ public class MangaKatana : MangaConnector year, originalLanguage, status, publicationId); } - public override Chapter[] GetChapters(Publication publication, string language = "") + public override Chapter[] GetChapters(Publication publication, string language="en") { Log($"Getting chapters {publication}"); string requestUrl = $"https://mangakatana.com/manga/{publication.publicationId}"; diff --git a/Tranga/MangaConnectors/Manganato.cs b/Tranga/MangaConnectors/Manganato.cs index 231afb2..3f0e9df 100644 --- a/Tranga/MangaConnectors/Manganato.cs +++ b/Tranga/MangaConnectors/Manganato.cs @@ -125,7 +125,7 @@ public class Manganato : MangaConnector year, originalLanguage, status, publicationId); } - public override Chapter[] GetChapters(Publication publication, string language = "") + public override Chapter[] GetChapters(Publication publication, string language="en") { Log($"Getting chapters {publication}"); string requestUrl = $"https://chapmanganato.com/{publication.publicationId}"; diff --git a/Tranga/MangaConnectors/Mangasee.cs b/Tranga/MangaConnectors/Mangasee.cs index 9c068df..5c528ab 100644 --- a/Tranga/MangaConnectors/Mangasee.cs +++ b/Tranga/MangaConnectors/Mangasee.cs @@ -212,7 +212,7 @@ public class Mangasee : MangaConnector } } - public override Chapter[] GetChapters(Publication publication, string language = "") + public override Chapter[] GetChapters(Publication publication, string language="en") { Log($"Getting chapters {publication}"); XDocument doc = XDocument.Load($"https://mangasee123.com/rss/{publication.publicationId}.xml");