diff --git a/src/id/yuramanga/build.gradle b/src/id/yuramanga/build.gradle index dbebf19cf..8a3bfdfcd 100644 --- a/src/id/yuramanga/build.gradle +++ b/src/id/yuramanga/build.gradle @@ -3,7 +3,8 @@ ext { extClass = '.YuraManga' themePkg = 'zmanga' baseUrl = 'https://www.yuramanga.my.id' - overrideVersionCode = 37 + overrideVersionCode = 38 + isNsfw = false } apply from: "$rootDir/common.gradle" diff --git a/src/id/yuramanga/src/eu/kanade/tachiyomi/extension/id/yuramanga/YuraManga.kt b/src/id/yuramanga/src/eu/kanade/tachiyomi/extension/id/yuramanga/YuraManga.kt index acb7916f7..65be0f41f 100644 --- a/src/id/yuramanga/src/eu/kanade/tachiyomi/extension/id/yuramanga/YuraManga.kt +++ b/src/id/yuramanga/src/eu/kanade/tachiyomi/extension/id/yuramanga/YuraManga.kt @@ -1,14 +1,17 @@ package eu.kanade.tachiyomi.extension.id.yuramanga 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.text.SimpleDateFormat +import java.util.Locale class YuraManga : ZManga( "YuraManga", "https://www.yuramanga.my.id", "id", - SimpleDateFormat("dd/MM/yyyy"), + SimpleDateFormat("dd/MM/yyyy", Locale.ROOT), ) { // Moved from Madara to ZManga override val versionId = 3 @@ -22,4 +25,10 @@ class YuraManga : ZManga( response } .build() + + override fun pageListParse(document: Document): List { + return document.select("div.reader-area img.lazyload").mapIndexed { i, img -> + Page(i, "", img.attr("abs:data-src")) + } + } }