diff --git a/src/en/infernalvoidscans/build.gradle b/src/en/infernalvoidscans/build.gradle index e2961fabe..91207d9d6 100644 --- a/src/en/infernalvoidscans/build.gradle +++ b/src/en/infernalvoidscans/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'Infernal Void Scans' extClass = '.InfernalVoidScans' themePkg = 'mangathemesia' - baseUrl = 'https://hivescans.com' - overrideVersionCode = 6 + baseUrl = 'https://hivetoon.com' + overrideVersionCode = 7 } apply from: "$rootDir/common.gradle" diff --git a/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/InfernalVoidScans.kt b/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/InfernalVoidScans.kt index 64797a343..b842a9fbf 100644 --- a/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/InfernalVoidScans.kt +++ b/src/en/infernalvoidscans/src/eu/kanade/tachiyomi/extension/en/infernalvoidscans/InfernalVoidScans.kt @@ -1,7 +1,27 @@ package eu.kanade.tachiyomi.extension.en.infernalvoidscans import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.source.model.FilterList +import okhttp3.Request -class InfernalVoidScans : MangaThemesia("Infernal Void Scans", "https://hivescans.com", "en") { +class InfernalVoidScans : MangaThemesia( + "Infernal Void Scans", + "https://hivetoon.com", + "en", +) { override val pageSelector = "div#readerarea > p > img" + + override val hasProjectPage = true + + override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { + val url = super.searchMangaRequest(page, query, filters).url.newBuilder() + .removeAllQueryParameters("title") + + // Filters are not loaded with the ā€˜sā€™ parameter. Fix genres filter + if (query.isNotBlank()) { + url.addQueryParameter("s", query) + } + return GET(url.build(), headers) + } }