diff --git a/lib-multisrc/iken/build.gradle.kts b/lib-multisrc/iken/build.gradle.kts index 6e70fd158..b45873b53 100644 --- a/lib-multisrc/iken/build.gradle.kts +++ b/lib-multisrc/iken/build.gradle.kts @@ -2,4 +2,4 @@ plugins { id("lib-multisrc") } -baseVersionCode = 4 +baseVersionCode = 5 diff --git a/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Dto.kt b/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Dto.kt index 84142f8a9..056842d7b 100644 --- a/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Dto.kt +++ b/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Dto.kt @@ -96,10 +96,13 @@ class Chapter( private val createdBy: Name, private val createdAt: String, private val chapterStatus: String, + private val isAccessible: Boolean, private val mangaPost: ChapterPostDetails, ) { fun isPublic() = chapterStatus == "PUBLIC" + fun isAccessible() = isAccessible + fun toSChapter(mangaSlug: String?) = SChapter.create().apply { val seriesSlug = mangaSlug ?: mangaPost.slug url = "/series/$seriesSlug/$slug#$id" diff --git a/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt b/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt index 83acfe51e..3aa65fc92 100644 --- a/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt +++ b/lib-multisrc/iken/src/eu/kanade/tachiyomi/multisrc/iken/Iken.kt @@ -128,7 +128,7 @@ abstract class Iken( assert(!data.post.isNovel) { "Novels are unsupported" } return data.post.chapters - .filter { it.isPublic() } + .filter { it.isPublic() && it.isAccessible() } .map { it.toSChapter(data.post.slug) } }