YuraManga: Update domain (#5978)

Update domain
This commit is contained in:
Chopper 2024-11-11 05:38:53 -03:00 committed by Draff
parent 097ad52daa
commit 81e02d01b3
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 19 additions and 3 deletions

View File

@ -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"

View File

@ -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()
}