InfernalVoidScans: Update domain and fix loading mangas (#4061)

* Update domain and fix loading mangas

* Fix genre filter

* Remove duplicate code
This commit is contained in:
Chopper 2024-07-18 07:43:31 -03:00 committed by Draff
parent fec86f2276
commit 3249f02716
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 23 additions and 3 deletions

View File

@ -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"

View File

@ -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)
}
}