MadTheme: use alternative pagination selector (#12374)

This commit is contained in:
Vetle Ledaal 2022-07-01 23:06:01 +00:00 committed by GitHub
parent 522b8c6293
commit 8717ee0a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -110,7 +110,11 @@ abstract class MadTheme(
thumbnail_url = element.select("img").first()!!.attr("abs:data-src")
}
override fun searchMangaNextPageSelector(): String? = ".paginator [rel=next]"
/*
* Only some sites use the next/previous buttons, so instead we check for the next link
* after the active one. We use the :not() selector to exclude the optional next button
*/
override fun searchMangaNextPageSelector(): String? = ".paginator > a.active + a:not([rel=next])"
// Details
override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply {

View File

@ -9,7 +9,7 @@ class MadThemeGenerator : ThemeSourceGenerator {
override val themeClass = "MadTheme"
override val baseVersionCode: Int = 6
override val baseVersionCode: Int = 7
override val sources = listOf(
SingleLang("BeeHentai", "https://beehentai.com", "en", isNsfw = true),