From 415820c9fb3d0029c93547657d721dded7108514 Mon Sep 17 00:00:00 2001 From: kana-shii <79055104+kana-shii@users.noreply.github.com> Date: Mon, 30 Dec 2024 14:07:32 -0300 Subject: [PATCH] Bato.to: Regex update (#6848) * update regex * Update build.gradle * Update BatoTo.kt * Update BatoTo.kt --- src/all/batoto/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/batoto/build.gradle b/src/all/batoto/build.gradle index 7a5e74d9d66..424e2f0d2d3 100644 --- a/src/all/batoto/build.gradle +++ b/src/all/batoto/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Bato.to' extClass = '.BatoToFactory' - extVersionCode = 44 + extVersionCode = 45 isNsfw = true } diff --git a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt index 16b2b4eb2c6..a4915ac4689 100644 --- a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt +++ b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt @@ -332,7 +332,7 @@ open class BatoTo( return super.mangaDetailsRequest(manga) } private var titleRegex: Regex = - Regex("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|⌜.+?⌝|⟨[^⟩]*⟩|/.+)") + Regex("\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|⌜.+?⌝|⟨[^⟩]*⟩|\\/Official|\\/ Official", RegexOption.IGNORE_CASE) override fun mangaDetailsParse(document: Document): SManga { val infoElement = document.select("div#mainer div.container-fluid")