parent
097ad52daa
commit
81e02d01b3
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue