mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
kuronime: fix search
This commit is contained in:
parent
1fe5ed78be
commit
c66b1bdedb
5 changed files with 36 additions and 26 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 12
|
||||
version = 13
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -9,10 +9,11 @@ import com.lagradost.cloudstream3.utils.getQualityFromName
|
|||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
import org.jsoup.Jsoup
|
||||
import org.jsoup.nodes.Element
|
||||
import java.net.URI
|
||||
import java.util.ArrayList
|
||||
|
||||
class KuronimeProvider : MainAPI() {
|
||||
override var mainUrl = "https://kuronime.lol"
|
||||
override var mainUrl = "https://kuronime.top"
|
||||
override var name = "Kuronime"
|
||||
override val hasQuickSearch = true
|
||||
override val hasMainPage = true
|
||||
|
@ -53,7 +54,9 @@ class KuronimeProvider : MainAPI() {
|
|||
page: Int,
|
||||
request: MainPageRequest
|
||||
): HomePageResponse {
|
||||
val document = app.get(request.data + page).document
|
||||
val req = app.get(request.data + page)
|
||||
mainUrl = getBaseUrl(req.url)
|
||||
val document = req.document
|
||||
val home = document.select("article").map {
|
||||
it.toSearchResult()
|
||||
}
|
||||
|
@ -98,6 +101,7 @@ class KuronimeProvider : MainAPI() {
|
|||
override suspend fun quickSearch(query: String): List<SearchResponse>? = search(query)
|
||||
|
||||
override suspend fun search(query: String): List<SearchResponse>? {
|
||||
mainUrl = app.get(mainUrl).url
|
||||
return app.post(
|
||||
"$mainUrl/wp-admin/admin-ajax.php", data = mapOf(
|
||||
"action" to "ajaxy_sf",
|
||||
|
@ -205,6 +209,12 @@ class KuronimeProvider : MainAPI() {
|
|||
return true
|
||||
}
|
||||
|
||||
private fun getBaseUrl(url: String): String {
|
||||
return URI(url).let {
|
||||
"${it.scheme}://${it.host}"
|
||||
}
|
||||
}
|
||||
|
||||
data class All(
|
||||
@JsonProperty("post_image") var postImage: String? = null,
|
||||
@JsonProperty("post_image_html") var postImageHtml: String? = null,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 16
|
||||
version = 17
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.jsoup.Jsoup
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class OploverzProvider : MainAPI() {
|
||||
override var mainUrl = "https://oploverz.love"
|
||||
override var mainUrl = "https://oploverz.care"
|
||||
override var name = "Oploverz"
|
||||
override val hasMainPage = true
|
||||
override var lang = "id"
|
||||
|
|
|
@ -127,7 +127,6 @@ open class SoraStream : TmdbProvider() {
|
|||
|
||||
// INDEX SITE
|
||||
const val blackMoviesAPI = "https://dl.blacklistedbois.workers.dev/0:"
|
||||
const val rinzryMoviesAPI = "https://rinzry.stream/0:"
|
||||
const val codexMoviesAPI = "https://packs.codexcloudx.tech/0:"
|
||||
const val edithxMoviesAPI = "https://index.edithx.ga/0:"
|
||||
const val dahmerMoviesAPI = "https://edytjedhgmdhm.abfhaqrhbnf.workers.dev"
|
||||
|
@ -140,15 +139,16 @@ open class SoraStream : TmdbProvider() {
|
|||
base64DecodeAPI("ZXY=LmQ=cnM=a2U=b3I=Lnc=ZXI=ZGQ=bGE=cy0=b2I=YWM=Lmo=YWw=aW4=LWY=cm4=Ym8=cmU=Ly8=czo=dHA=aHQ=")
|
||||
|
||||
// DEAD SITE
|
||||
const val chillmovies0API = "https://chill.aicirou.workers.dev/0:" // dead
|
||||
const val chillmovies1API = "https://chill.aicirou.workers.dev/1:" // dead
|
||||
const val gamMoviesAPI = "https://drive.gamick.workers.dev/0:" // dead
|
||||
const val jsMoviesAPI = "https://jsupload.jnsbot.workers.dev/0:" // dead
|
||||
const val xtremeMoviesAPI = "https://kartik19.xtrememirror0.workers.dev/0:" // dead
|
||||
const val tgarMovieAPI = "https://tgarchive.eu.org" // dead
|
||||
const val baymoviesAPI = "https://opengatewayindex.pages.dev" // dead
|
||||
const val papaonMovies1API = "https://m.papaonwork.workers.dev/0:" // dead
|
||||
const val papaonMovies2API = "https://m.papaonwork.workers.dev/1:" // dead
|
||||
const val rinzryMoviesAPI = "https://rinzry.stream/0:"
|
||||
const val chillmovies0API = "https://chill.aicirou.workers.dev/0:"
|
||||
const val chillmovies1API = "https://chill.aicirou.workers.dev/1:"
|
||||
const val gamMoviesAPI = "https://drive.gamick.workers.dev/0:"
|
||||
const val jsMoviesAPI = "https://jsupload.jnsbot.workers.dev/0:"
|
||||
const val xtremeMoviesAPI = "https://kartik19.xtrememirror0.workers.dev/0:"
|
||||
const val tgarMovieAPI = "https://tgarchive.eu.org"
|
||||
const val baymoviesAPI = "https://opengatewayindex.pages.dev"
|
||||
const val papaonMovies1API = "https://m.papaonwork.workers.dev/0:"
|
||||
const val papaonMovies2API = "https://m.papaonwork.workers.dev/1:"
|
||||
|
||||
fun getType(t: String?): TvType {
|
||||
return when (t) {
|
||||
|
@ -646,17 +646,17 @@ open class SoraStream : TmdbProvider() {
|
|||
callback
|
||||
)
|
||||
},
|
||||
{
|
||||
invokeRinzrymovies(
|
||||
rinzryMoviesAPI,
|
||||
"RinzryMovies",
|
||||
res.title,
|
||||
res.year,
|
||||
res.season,
|
||||
res.episode,
|
||||
callback,
|
||||
)
|
||||
},
|
||||
// {
|
||||
// invokeRinzrymovies(
|
||||
// rinzryMoviesAPI,
|
||||
// "RinzryMovies",
|
||||
// res.title,
|
||||
// res.year,
|
||||
// res.season,
|
||||
// res.episode,
|
||||
// callback,
|
||||
// )
|
||||
// },
|
||||
{
|
||||
if (!res.isAnime) invokeCodexmovies(
|
||||
codexMoviesAPI,
|
||||
|
|
Loading…
Reference in a new issue