enhance(LocalSource): Allow ComicInfo to also set chapter scanlator

This commit is contained in:
Ahmad Ansori Palembani 2024-05-31 13:36:22 +07:00
parent 23401d33ed
commit 8b3d35bc2a
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@
## 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)
- Entry chapters' info can be edited using ComicInfo
## Fixes
- Fixed smart background colour by page failing causing the image to not load

View file

@ -94,6 +94,7 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
comicInfo.number?.value?.toFloatOrNull()?.let {
chapter.chapter_number = it
} ?: ChapterRecognition.parseChapterNumber(chapter, manga)
comicInfo.translator?.let { chapter.scanlator = it.value }
}
/**