Xinmeitulu: skip ads (#17975)

This commit is contained in:
Vetle Ledaal 2023-09-16 15:38:17 +00:00 committed by GitHub
parent 24487aba2a
commit f0402f1f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Xinmeitulu'
pkgNameSuffix = 'all.xinmeitulu'
extClass = '.Xinmeitulu'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View File

@ -36,7 +36,7 @@ class Xinmeitulu : ParsedHttpSource() {
override fun popularMangaRequest(page: Int) = GET("$baseUrl/page/$page")
override fun popularMangaNextPageSelector() = ".next"
override fun popularMangaSelector() = ".container > .row > div"
override fun popularMangaSelector() = ".container > .row > div:has(figure)"
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
setUrlWithoutDomain(element.select("figure > a").attr("abs:href"))
title = element.select("figcaption").text()