feat(LocalSource): Edit chapters info with ComicInfo

This commit is contained in:
Ahmad Ansori Palembani 2024-05-31 10:55:57 +07:00
parent da1b9abe2a
commit 565bb2248f
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 5 additions and 1 deletions

View file

@ -9,6 +9,8 @@
-->
## Additions
- Added a couple new tags to set entry as SFW (`sfw` and `non-erotic`)
- Downloaded chapters now include ComicInfo file
- Entries' chapters info can be edited using ComicInfo (currently only support chapter number and chapter title)
## Fixes
- Fixed smart background colour by page failing causing the image to not load

View file

@ -305,7 +305,9 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
}
}
ChapterRecognition.parseChapterNumber(this, manga)
chapterComicInfo?.number?.value?.toFloatOrNull()?.let {
chapter_number = it
} ?: ChapterRecognition.parseChapterNumber(this, manga)
}
}
.sortedWith { c1, c2 ->