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:
parent
4fc0bc0efd
commit
5e4c156a27
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.DocTruyen3Q'
|
||||
themePkg = 'wpcomics'
|
||||
baseUrl = 'https://doctruyen3qui.pro'
|
||||
overrideVersionCode = 4
|
||||
overrideVersionCode = 5
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ class DocTruyen3Q :
|
||||
.build()
|
||||
|
||||
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")
|
||||
Page(index, imageUrl = img)
|
||||
}.distinctBy { it.imageUrl }
|
||||
|
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.TopTruyen'
|
||||
themePkg = 'wpcomics'
|
||||
baseUrl = 'https://www.toptruyentv.pro'
|
||||
overrideVersionCode = 8
|
||||
overrideVersionCode = 9
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ class TopTruyen :
|
||||
.build()
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select(".page-chapter img")
|
||||
return document.select(".page-chapter[id] img")
|
||||
.mapNotNull(::imageOrNull)
|
||||
.distinct()
|
||||
.mapIndexed { i, image -> Page(i, imageUrl = image) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user