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

@ -235,12 +235,8 @@ public class Mangasee : MangaConnector
}
//Return Chapters ordered by Chapter-Number
NumberFormatInfo chapterNumberFormatInfo = new()
{
NumberDecimalSeparator = "."
};
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();
}
public override HttpStatusCode DownloadChapter(Chapter chapter, ProgressToken? progressToken = null)