From 50dd55646c2b0c3ff028f9ad410f535fcbc395b4 Mon Sep 17 00:00:00 2001 From: Luqman <16263232+Riztard@users.noreply.github.com> Date: Thu, 12 Sep 2024 18:22:28 +0700 Subject: [PATCH] Mangatale: update domain, change selector, tweak rate limit (#5016) closes #4986 - update domain - change title selector - tweak rate limit --- src/id/mangatale/build.gradle | 4 ++-- .../eu/kanade/tachiyomi/extension/id/mangatale/MangaTale.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/id/mangatale/build.gradle b/src/id/mangatale/build.gradle index 8886a0ae5..7dbf05cba 100644 --- a/src/id/mangatale/build.gradle +++ b/src/id/mangatale/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'MangaTale' extClass = '.MangaTale' themePkg = 'mangathemesia' - baseUrl = 'https://mangatale.co' - overrideVersionCode = 3 + baseUrl = 'https://mangatale.id' + overrideVersionCode = 4 } apply from: "$rootDir/common.gradle" diff --git a/src/id/mangatale/src/eu/kanade/tachiyomi/extension/id/mangatale/MangaTale.kt b/src/id/mangatale/src/eu/kanade/tachiyomi/extension/id/mangatale/MangaTale.kt index 6db374ba6..a4c75cdb4 100644 --- a/src/id/mangatale/src/eu/kanade/tachiyomi/extension/id/mangatale/MangaTale.kt +++ b/src/id/mangatale/src/eu/kanade/tachiyomi/extension/id/mangatale/MangaTale.kt @@ -7,10 +7,10 @@ import okhttp3.OkHttpClient import okhttp3.ResponseBody.Companion.toResponseBody import org.jsoup.nodes.Document -class MangaTale : MangaThemesia("MangaTale", "https://mangatale.co", "id") { +class MangaTale : MangaThemesia("MangaTale", "https://mangatale.id", "id") { override val client: OkHttpClient = super.client.newBuilder() - .rateLimit(20, 5) + .rateLimit(12, 3) .addInterceptor { chain -> val response = chain.proceed(chain.request()) val mime = response.headers["Content-Type"] @@ -28,7 +28,7 @@ class MangaTale : MangaThemesia("MangaTale", "https://mangatale.co", "id") { } .build() - override val seriesTitleSelector = ".ts-breadcrumb li:last-child span" + override val seriesTitleSelector = ".ts-breadcrumb span:last-child span" override fun mangaDetailsParse(document: Document) = super.mangaDetailsParse(document).apply { thumbnail_url = document.selectFirst(seriesThumbnailSelector)?.imgAttr()