Remove self-promotion, ads: TopTruyen, DocTruyen3Q (#7882)

These sites added self-promotion and ad images that are not relevant to the translation team.
This commit is contained in:
Fioren 2025-03-04 08:50:51 +07:00 committed by Draff
parent 4fc0bc0efd
commit 5e4c156a27
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.DocTruyen3Q' extClass = '.DocTruyen3Q'
themePkg = 'wpcomics' themePkg = 'wpcomics'
baseUrl = 'https://doctruyen3qui.pro' baseUrl = 'https://doctruyen3qui.pro'
overrideVersionCode = 4 overrideVersionCode = 5
isNsfw = true isNsfw = true
} }

View File

@ -37,7 +37,7 @@ class DocTruyen3Q :
.build() .build()
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.select(".page-chapter a img, .page-chapter img").mapIndexed { index, element -> return document.select(".page-chapter[id] a img, .page-chapter[id] img").mapIndexed { index, element ->
val img = element.attr("abs:src").takeIf { it.isNotBlank() } ?: element.attr("abs:data-original") val img = element.attr("abs:src").takeIf { it.isNotBlank() } ?: element.attr("abs:data-original")
Page(index, imageUrl = img) Page(index, imageUrl = img)
}.distinctBy { it.imageUrl } }.distinctBy { it.imageUrl }

View File

@ -3,7 +3,7 @@ ext {
extClass = '.TopTruyen' extClass = '.TopTruyen'
themePkg = 'wpcomics' themePkg = 'wpcomics'
baseUrl = 'https://www.toptruyentv.pro' baseUrl = 'https://www.toptruyentv.pro'
overrideVersionCode = 8 overrideVersionCode = 9
isNsfw = true isNsfw = true
} }

View File

@ -37,7 +37,7 @@ class TopTruyen :
.build() .build()
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.select(".page-chapter img") return document.select(".page-chapter[id] img")
.mapNotNull(::imageOrNull) .mapNotNull(::imageOrNull)
.distinct() .distinct()
.mapIndexed { i, image -> Page(i, imageUrl = image) } .mapIndexed { i, image -> Page(i, imageUrl = image) }