Update WPComics to show appropriate title while searching (#10772)

* Change Selector

* Bump version
This commit is contained in:
FourTOne5 2022-02-09 18:17:04 +06:00 committed by GitHub
parent 82d8a2f2ab
commit b71aef51cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -97,13 +97,15 @@ abstract class WPComics(
}
}
override fun searchMangaSelector() = "div.items div.item div.image a"
override fun searchMangaSelector() = "div.items div.item"
override fun searchMangaFromElement(element: Element): SManga {
return SManga.create().apply {
title = element.attr("title")
setUrlWithoutDomain(element.attr("href"))
thumbnail_url = imageOrNull(element.select("img").first())
element.select("h3 a").let {
title = it.text()
setUrlWithoutDomain(it.attr("abs:href"))
}
thumbnail_url = imageOrNull(element.select("div.image a img").first())
}
}

View File

@ -10,7 +10,7 @@ class WPComicsGenerator : ThemeSourceGenerator {
override val themeClass = "WPComics"
override val baseVersionCode: Int = 1
override val baseVersionCode: Int = 2
override val sources = listOf(
MultiLang("MangaToro", "https://mangatoro.com", listOf("en", "ja"), overrideVersionCode = 1),