fix chapter reading not working

This commit is contained in:
Aria Moradi 2021-04-13 01:23:09 +04:30
parent 309803368b
commit 2f116b40b2

View File

@ -71,7 +71,7 @@ object Chapter {
// TODO: delete orphan chapters // TODO: delete orphan chapters
} }
chapterList.map { it -> chapterList.mapIndexed { index, it ->
ChapterDataClass( ChapterDataClass(
it.url, it.url,
it.name, it.name,
@ -79,6 +79,7 @@ object Chapter {
it.chapter_number, it.chapter_number,
it.scanlator, it.scanlator,
mangaId, mangaId,
chapterCount - index,
) )
} }
} }