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'
|
extClass = '.DocTruyen3Q'
|
||||||
themePkg = 'wpcomics'
|
themePkg = 'wpcomics'
|
||||||
baseUrl = 'https://doctruyen3qui.pro'
|
baseUrl = 'https://doctruyen3qui.pro'
|
||||||
overrideVersionCode = 4
|
overrideVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 }
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user