2
0

Fixed null chapterNumber on mangadex

This commit is contained in:
glax 2023-06-28 22:43:24 +02:00
parent 41b6bb77b6
commit 98946b4aa3

View File

@ -194,6 +194,7 @@ public class MangaDex : Connector
? attributes["chapter"]!.GetValue<string>()
: "null";
if(chapterNum is not "null")
chapters.Add(new Chapter(publication, title, volume, chapterNum, chapterId));
}
}
@ -203,7 +204,7 @@ public class MangaDex : Connector
{
NumberDecimalSeparator = "."
};
logger?.WriteLine(this.GetType().ToString(), $"Done getting Chapters for {publication.internalId}");
logger?.WriteLine(this.GetType().ToString(), $"Done getting {chapters.Count} Chapters for {publication.internalId}");
return chapters.OrderBy(chapter => Convert.ToSingle(chapter.chapterNumber, chapterNumberFormatInfo)).ToArray();
}