parent
a05b16088f
commit
f740c319ba
|
@ -3,7 +3,7 @@ ext {
|
||||||
extClass = '.GenzToons'
|
extClass = '.GenzToons'
|
||||||
themePkg = 'keyoapp'
|
themePkg = 'keyoapp'
|
||||||
baseUrl = 'https://genzupdates.com'
|
baseUrl = 'https://genzupdates.com'
|
||||||
overrideVersionCode = 29
|
overrideVersionCode = 30
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import uy.kohesive.injekt.Injekt
|
import uy.kohesive.injekt.Injekt
|
||||||
import uy.kohesive.injekt.api.get
|
import uy.kohesive.injekt.api.get
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class GenzToons :
|
class GenzToons :
|
||||||
Keyoapp(
|
Keyoapp(
|
||||||
|
@ -27,6 +28,9 @@ class GenzToons :
|
||||||
|
|
||||||
override val client = super.client.newBuilder()
|
override val client = super.client.newBuilder()
|
||||||
.rateLimit(3)
|
.rateLimit(3)
|
||||||
|
.connectTimeout(90, TimeUnit.SECONDS)
|
||||||
|
.writeTimeout(90, TimeUnit.SECONDS)
|
||||||
|
.readTimeout(90, TimeUnit.SECONDS)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override fun chapterListSelector(): String {
|
override fun chapterListSelector(): String {
|
||||||
|
@ -70,6 +74,6 @@ class GenzToons :
|
||||||
companion object {
|
companion object {
|
||||||
private const val SHOW_PAID_CHAPTERS_PREF = "pref_show_paid_chap"
|
private const val SHOW_PAID_CHAPTERS_PREF = "pref_show_paid_chap"
|
||||||
private const val SHOW_PAID_CHAPTERS_DEFAULT = false
|
private const val SHOW_PAID_CHAPTERS_DEFAULT = false
|
||||||
private val CDN_URL_REGEX = """realUrl\s*=\s*`([^`]+)\$""".toRegex()
|
private val CDN_URL_REGEX = """realUrl\s*=\s*`([^`]+?)\$""".toRegex()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue