GenzToons: Fix wrong image url and increase timeouts (#5625)

fix regex
This commit is contained in:
bapeey 2024-10-21 08:43:43 -05:00 committed by GitHub
parent 59f3520be7
commit 119443d548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.GenzToons'
themePkg = 'keyoapp'
baseUrl = 'https://genzupdates.com'
overrideVersionCode = 29
overrideVersionCode = 30
}
apply from: "$rootDir/common.gradle"

View File

@ -13,6 +13,7 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.util.concurrent.TimeUnit
class GenzToons :
Keyoapp(
@ -27,6 +28,9 @@ class GenzToons :
override val client = super.client.newBuilder()
.rateLimit(3)
.connectTimeout(90, TimeUnit.SECONDS)
.writeTimeout(90, TimeUnit.SECONDS)
.readTimeout(90, TimeUnit.SECONDS)
.build()
override fun chapterListSelector(): String {
@ -70,6 +74,6 @@ class GenzToons :
companion object {
private const val SHOW_PAID_CHAPTERS_PREF = "pref_show_paid_chap"
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()
}
}