diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt index 9ec6ad39f..99b08e224 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt @@ -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()) } } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt index 5ab960532..c97b8b3e4 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt @@ -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),