diff --git a/src/en/comicextra/build.gradle b/src/en/comicextra/build.gradle index 3b9f58963..bb8344bb8 100644 --- a/src/en/comicextra/build.gradle +++ b/src/en/comicextra/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'ComicExtra' extClass = '.ComicExtra' - extVersionCode = 14 + extVersionCode = 15 } apply from: "$rootDir/common.gradle" diff --git a/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt b/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt index d8494d4a0..2d26a56c0 100644 --- a/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt +++ b/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt @@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.util.asJsoup +import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.Response @@ -22,7 +23,7 @@ class ComicExtra : ParsedHttpSource() { override val name = "ComicExtra" - override val baseUrl = "https://comicextra.me" + override val baseUrl = "https://comicextra.org" override val lang = "en" @@ -40,7 +41,11 @@ class ComicExtra : ParsedHttpSource() { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { return if (query.isNotBlank()) { - GET("$baseUrl/comic-search?key=$query", headers) + val url = "$baseUrl/search".toHttpUrl().newBuilder().apply { + addQueryParameter("keyword", query) + if (page > 1) addQueryParameter("page", page.toString()) + }.build() + GET(url, headers) } else { var url = baseUrl filters.forEach { filter -> @@ -153,7 +158,7 @@ class ComicExtra : ParsedHttpSource() { override fun pageListParse(document: Document): List { val pages = mutableListOf() - document.select("img.chapter_img").forEachIndexed { i, img -> + document.select("div.chapter-container img").forEachIndexed { i, img -> pages.add(Page(i, "", img.attr("abs:src"))) } return pages