mangago update regex (#5172)

This commit is contained in:
kana-shii 2024-09-23 10:21:56 -03:00 committed by Draff
parent 631709f29a
commit 683f874db5
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Mangago' extName = 'Mangago'
extClass = '.Mangago' extClass = '.Mangago'
extVersionCode = 19 extVersionCode = 20
isNsfw = true isNsfw = true
} }

View File

@ -171,10 +171,7 @@ class Mangago : ParsedHttpSource(), ConfigurableSource {
override fun searchMangaNextPageSelector() = genreListingNextPageSelector override fun searchMangaNextPageSelector() = genreListingNextPageSelector
private var titleRegex: Regex = private var titleRegex: Regex =
Regex( Regex("(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗|𖤍.+?𖤍|/.+?)\\s*|([|/~].*)|-.*-")
"(?:\\([^()]*\\)|\\{[^{}]*\\}|\\[(?:(?!]).)*]|«[^»]*»|〘[^〙]*〙|「[^」]*」|『[^』]*』|≪[^≫]*≫|﹛[^﹜]*﹜|〖[^〖〗]*〗𖤍.+?𖤍|/.+?)\\s*|([|/~].*)",
RegexOption.IGNORE_CASE,
)
override fun mangaDetailsParse(document: Document) = SManga.create().apply { override fun mangaDetailsParse(document: Document) = SManga.create().apply {
title = document.selectFirst(".w-title h1")!!.text() title = document.selectFirst(".w-title h1")!!.text()