2
0

Default language GetChapters: en

This commit is contained in:
glax 2023-08-26 02:42:31 +02:00
parent 4d1e43e7b3
commit a89a526fda
5 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ public abstract class MangaConnector : GlobalBase
/// <param name="publication">Publication to get Chapters for</param> /// <param name="publication">Publication to get Chapters for</param>
/// <param name="language">Language of the Chapters</param> /// <param name="language">Language of the Chapters</param>
/// <returns>Array of Chapters matching Publication and Language</returns> /// <returns>Array of Chapters matching Publication and Language</returns>
public abstract Chapter[] GetChapters(Publication publication, string language = ""); public abstract Chapter[] GetChapters(Publication publication, string language="en");
/// <summary> /// <summary>
/// Updates the available Chapters of a Publication /// Updates the available Chapters of a Publication

View File

@ -150,7 +150,7 @@ public class MangaDex : MangaConnector
return publications.ToArray(); return publications.ToArray();
} }
public override Chapter[] GetChapters(Publication publication, string language = "") public override Chapter[] GetChapters(Publication publication, string language="en")
{ {
Log($"Getting chapters {publication}"); Log($"Getting chapters {publication}");
const int limit = 100; //How many values we want returned at once const int limit = 100; //How many values we want returned at once

View File

@ -137,7 +137,7 @@ public class MangaKatana : MangaConnector
year, originalLanguage, status, publicationId); 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}"); Log($"Getting chapters {publication}");
string requestUrl = $"https://mangakatana.com/manga/{publication.publicationId}"; string requestUrl = $"https://mangakatana.com/manga/{publication.publicationId}";

View File

@ -125,7 +125,7 @@ public class Manganato : MangaConnector
year, originalLanguage, status, publicationId); 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}"); Log($"Getting chapters {publication}");
string requestUrl = $"https://chapmanganato.com/{publication.publicationId}"; string requestUrl = $"https://chapmanganato.com/{publication.publicationId}";

View File

@ -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}"); Log($"Getting chapters {publication}");
XDocument doc = XDocument.Load($"https://mangasee123.com/rss/{publication.publicationId}.xml"); XDocument doc = XDocument.Load($"https://mangasee123.com/rss/{publication.publicationId}.xml");