diff --git a/multisrc/overrides/wpcomics/xoxocomics/src/XoxoComics.kt b/multisrc/overrides/wpcomics/xoxocomics/src/XoxoComics.kt index efc6f37de..6f77d394f 100644 --- a/multisrc/overrides/wpcomics/xoxocomics/src/XoxoComics.kt +++ b/multisrc/overrides/wpcomics/xoxocomics/src/XoxoComics.kt @@ -14,7 +14,8 @@ import java.text.SimpleDateFormat import java.util.Locale class XoxoComics : WPComics("XOXO Comics", "https://xoxocomic.com", "en", SimpleDateFormat("MM/dd/yyyy", Locale.US), null) { - override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/comic-updates?page=$page", headers) + override val popularPath = "hot-comic" + override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/comic-update?page=$page", headers) override fun latestUpdatesSelector() = "li.row" override fun latestUpdatesFromElement(element: Element): SManga { return SManga.create().apply { @@ -26,7 +27,7 @@ class XoxoComics : WPComics("XOXO Comics", "https://xoxocomic.com", "en", Simple } } override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { - return GET("$baseUrl/search?keyword=$query&page=$page", headers) + return GET("$baseUrl/search-comic?keyword=$query&page=$page", headers) } override fun chapterListParse(response: Response): List { 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 9ae2c032a..e972ec292 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 @@ -128,7 +128,7 @@ abstract class WPComics( open fun String?.toStatus(): Int { val ongoingWords = listOf("Ongoing", "Updating", "Đang tiến hành") - val completedWords = listOf("Complete", "Hoàn thành") + val completedWords = listOf("Complete", "Completed", "Hoàn thành") return when { this == null -> SManga.UNKNOWN ongoingWords.doesInclude(this) -> SManga.ONGOING 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 4c1cce4a3..d97510e4c 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 @@ -9,7 +9,7 @@ class WPComicsGenerator : ThemeSourceGenerator { override val themeClass = "WPComics" - override val baseVersionCode: Int = 2 + override val baseVersionCode: Int = 3 override val sources = listOf( SingleLang("NetTruyen", "https://www.nettruyenclub.com", "vi", overrideVersionCode = 21),