YuraManga: exclude alternating broken images (#6233)

* YuraManga: fix page selector

* set locale for date format

* bump version, set nsfw
This commit is contained in:
Vetle Ledaal 2024-11-29 03:30:59 +01:00 committed by Draff
parent 348c373bc0
commit 1e09043247
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 12 additions and 2 deletions

View File

@ -3,7 +3,8 @@ ext {
extClass = '.YuraManga' extClass = '.YuraManga'
themePkg = 'zmanga' themePkg = 'zmanga'
baseUrl = 'https://www.yuramanga.my.id' baseUrl = 'https://www.yuramanga.my.id'
overrideVersionCode = 37 overrideVersionCode = 38
isNsfw = false
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -1,14 +1,17 @@
package eu.kanade.tachiyomi.extension.id.yuramanga package eu.kanade.tachiyomi.extension.id.yuramanga
import eu.kanade.tachiyomi.multisrc.zmanga.ZManga import eu.kanade.tachiyomi.multisrc.zmanga.ZManga
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
import java.io.IOException import java.io.IOException
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale
class YuraManga : ZManga( class YuraManga : ZManga(
"YuraManga", "YuraManga",
"https://www.yuramanga.my.id", "https://www.yuramanga.my.id",
"id", "id",
SimpleDateFormat("dd/MM/yyyy"), SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
) { ) {
// Moved from Madara to ZManga // Moved from Madara to ZManga
override val versionId = 3 override val versionId = 3
@ -22,4 +25,10 @@ class YuraManga : ZManga(
response response
} }
.build() .build()
override fun pageListParse(document: Document): List<Page> {
return document.select("div.reader-area img.lazyload").mapIndexed { i, img ->
Page(i, "", img.attr("abs:data-src"))
}
}
} }