Fix an edge case in MangaPlus (#18427)

Fix an edge case in MangaPlus.
This commit is contained in:
Alessandro Jean 2023-10-07 22:50:41 -03:00 committed by GitHub
parent 478c0aa327
commit 6b64899c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MANGA Plus by SHUEISHA'
pkgNameSuffix = 'all.mangaplus'
extClass = '.MangaPlusFactory'
extVersionCode = 46
extVersionCode = 47
}
dependencies {

View File

@ -70,6 +70,9 @@ data class TitleDetailView(
) {
val chapterList: List<Chapter> by lazy {
// Doesn't include `midChapterList` by design as their site API returns it
// just for visual representation to redirect users to their app. The extension
// intends to allow users to read only what they can already read in their site.
chapterListGroup.flatMap { it.firstChapterList + it.lastChapterList }
}
@ -212,10 +215,12 @@ enum class LabelCode {
@SerialName("J_PLUS")
SHOUNEN_JUMP_PLUS,
REVIVAL,
@SerialName("CREATORS")
MANGA_PLUS_CREATORS,
REVIVAL,
OTHERS,
}
@Serializable