MadTheme: use alternative pagination selector (#12374)
This commit is contained in:
		
							parent
							
								
									522b8c6293
								
							
						
					
					
						commit
						8717ee0a60
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
@ -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),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user