Skip to content

Commit

Permalink
GenzToons: Fix wrong image url and increase timeouts (#5625)
Browse files Browse the repository at this point in the history
fix regex
  • Loading branch information
bapeey authored and cuong-tran committed Oct 21, 2024
1 parent 2a1ec8f commit d419daf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/en/suryascans/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ext {
extClass = '.GenzToons'
themePkg = 'keyoapp'
baseUrl = 'https://genzupdates.com'
overrideVersionCode = 29
overrideVersionCode = 30
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 {
Expand Down Expand Up @@ -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()
}
}

0 comments on commit d419daf

Please sign in to comment.