Added numberFormatDecimalPoint to GlobalBase

This commit is contained in:
2023-09-05 19:42:46 +02:00
parent 5f2c66b729
commit 76a2b2498a
6 changed files with 8 additions and 20 deletions

View File

@ -156,13 +156,9 @@ public class MangaKatana : MangaConnector
return Array.Empty<Chapter>();
//Return Chapters ordered by Chapter-Number
NumberFormatInfo chapterNumberFormatInfo = new()
{
NumberDecimalSeparator = "."
};
List<Chapter> chapters = ParseChaptersFromHtml(manga, requestUrl);
Log($"Got {chapters.Count} chapters. {manga}");
return chapters.OrderBy(chapter => Convert.ToSingle(chapter.chapterNumber, chapterNumberFormatInfo)).ToArray();
return chapters.OrderBy(chapter => Convert.ToSingle(chapter.chapterNumber, numberFormatDecimalPoint)).ToArray();
}
private List<Chapter> ParseChaptersFromHtml(Manga manga, string mangaUrl)