mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
feat(LocalSource): Edit chapters info with ComicInfo
This commit is contained in:
parent
da1b9abe2a
commit
565bb2248f
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue