Bentomanga fix chapters (#17057)

* Exclude url with style='display:none' who breaks everything

* Update gradle version
This commit is contained in:
RGFRv2 2023-07-09 16:13:18 +02:00 committed by GitHub
parent 93bc84108c
commit 28f5a08ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Bento Manga' extName = 'Bento Manga'
pkgNameSuffix = 'fr.japanread' pkgNameSuffix = 'fr.japanread'
extClass = '.BentoManga' extClass = '.BentoManga'
extVersionCode = 14 extVersionCode = 15
isNsfw = true isNsfw = true
} }

View File

@ -193,7 +193,7 @@ class BentoManga : ParsedHttpSource(), ConfigurableSource {
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
return SChapter.create().apply { return SChapter.create().apply {
name = element.select("div.component-chapter-title a span.chapter_volume").text() name = element.select("div.component-chapter-title a span.chapter_volume").text()
setUrlWithoutDomain(element.select("div.component-chapter-title a").attr("href")) setUrlWithoutDomain(element.select("div.component-chapter-title a:not([style*='display:none'])").attr("href"))
date_upload = parseRelativeDate(element.select("div.component-chapter-date").text()) date_upload = parseRelativeDate(element.select("div.component-chapter-date").text())
scanlator = element.select("div.component-chapter-teams a span").joinToString(" + ") { it.text() } scanlator = element.select("div.component-chapter-teams a span").joinToString(" + ") { it.text() }
} }