Doujin.io: only use images as pages (#8152)

This commit is contained in:
Fermín Cirella 2025-03-23 12:04:05 -03:00 committed by Draff
parent 72c0ecc64f
commit 63d0d76535
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 16 additions and 9 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Doujin.io - J18'
extClass = '.Doujinio'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -60,7 +60,10 @@ class Chapter(
class ChapterMetadata(val identifier: String)
@Serializable
class ChapterPage(val href: String)
class ChapterPage(
val href: String,
val type: String,
)
@Serializable
class ChapterManifest(
@ -68,7 +71,11 @@ class ChapterManifest(
@SerialName("readingOrder")
private val pages: List<ChapterPage>,
) {
fun toPageList() = pages.mapIndexed { i, page ->
fun toPageList() =
pages
.filter { page ->
page.type.startsWith("image")
}.mapIndexed { i, page ->
Page(
index = i,
url = metadata.identifier,