diff --git a/src/id/yuramanga/build.gradle b/src/id/yuramanga/build.gradle index 22c35a420..dbebf19cf 100644 --- a/src/id/yuramanga/build.gradle +++ b/src/id/yuramanga/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'YuraManga' extClass = '.YuraManga' themePkg = 'zmanga' - baseUrl = 'https://yuramanga.my.id' - overrideVersionCode = 36 + baseUrl = 'https://www.yuramanga.my.id' + overrideVersionCode = 37 } 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 b893b2464..acb7916f7 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,9 +1,25 @@ package eu.kanade.tachiyomi.extension.id.yuramanga import eu.kanade.tachiyomi.multisrc.zmanga.ZManga +import java.io.IOException import java.text.SimpleDateFormat -class YuraManga : ZManga("YuraManga", "https://yuramanga.my.id", "id", SimpleDateFormat("dd/MM/yyyy")) { +class YuraManga : ZManga( + "YuraManga", + "https://www.yuramanga.my.id", + "id", + SimpleDateFormat("dd/MM/yyyy"), +) { // Moved from Madara to ZManga override val versionId = 3 + + override val client = super.client.newBuilder() + .addInterceptor { chain -> + val response = chain.proceed(chain.request()) + if (response.request.url.pathSegments.contains("login")) { + throw IOException("Please log in to the WebView to continue") + } + response + } + .build() }