From d419dafc1beb89f05bf799d83a6ad65a42db2b45 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Mon, 21 Oct 2024 08:43:43 -0500 Subject: [PATCH] GenzToons: Fix wrong image url and increase timeouts (#5625) fix regex --- src/en/suryascans/build.gradle | 2 +- .../kanade/tachiyomi/extension/en/suryascans/GenzToons.kt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/en/suryascans/build.gradle b/src/en/suryascans/build.gradle index 78feedfd9c..cf379ef9a9 100644 --- a/src/en/suryascans/build.gradle +++ b/src/en/suryascans/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.GenzToons' themePkg = 'keyoapp' baseUrl = 'https://genzupdates.com' - overrideVersionCode = 29 + overrideVersionCode = 30 } apply from: "$rootDir/common.gradle" diff --git a/src/en/suryascans/src/eu/kanade/tachiyomi/extension/en/suryascans/GenzToons.kt b/src/en/suryascans/src/eu/kanade/tachiyomi/extension/en/suryascans/GenzToons.kt index cf51039714..81d84fdf22 100644 --- a/src/en/suryascans/src/eu/kanade/tachiyomi/extension/en/suryascans/GenzToons.kt +++ b/src/en/suryascans/src/eu/kanade/tachiyomi/extension/en/suryascans/GenzToons.kt @@ -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() } }