From e1b8dd745ec277b30761a30eff5c08d5c406ffe9 Mon Sep 17 00:00:00 2001 From: kana-shii <79055104+kana-shii@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:27:35 -0300 Subject: [PATCH] Batoto regex update (#5853) * fix bato * check chapter list first * throw normal exception * only regex --- .../src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 26d07d1ed..94f0ac0a6 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 @@ -323,7 +323,7 @@ open class BatoTo( return super.mangaDetailsRequest(manga) } private var titleRegex: Regex = - Regex("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|/.+?)\\s*|([|/~].*)|-.*-") + Regex("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|《[^》]*》|/.+?|⌜.+?⌝)\\s*") override fun mangaDetailsParse(document: Document): SManga { val infoElement = document.select("div#mainer div.container-fluid")