Update WPComics to show appropriate title while searching (#10772)
* Change Selector * Bump version
This commit is contained in:
		
							parent
							
								
									82d8a2f2ab
								
							
						
					
					
						commit
						b71aef51cb
					
				@ -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())
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user