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:
parent
fec86f2276
commit
3249f02716
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'Infernal Void Scans'
|
extName = 'Infernal Void Scans'
|
||||||
extClass = '.InfernalVoidScans'
|
extClass = '.InfernalVoidScans'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://hivescans.com'
|
baseUrl = 'https://hivetoon.com'
|
||||||
overrideVersionCode = 6
|
overrideVersionCode = 7
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -1,7 +1,27 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.infernalvoidscans
|
package eu.kanade.tachiyomi.extension.en.infernalvoidscans
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
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 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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue