2
1
Fork 1
mirror of https://github.com/yoyzo/arab synced 2024-08-15 03:15:00 +00:00
This commit is contained in:
Zaw 2023-02-15 22:45:47 +03:00
parent 36744a22a3
commit a50fcc8cf5
4 changed files with 11 additions and 4 deletions

View file

@ -1,6 +1,7 @@
package com.movizland package com.movizland
import android.annotation.SuppressLint
import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
@ -71,6 +72,7 @@ class Movizland : MainAPI() {
return newHomePageResponse(request.name, list) return newHomePageResponse(request.name, list)
} }
@SuppressLint("SuspiciousIndentation")
override suspend fun search(query: String): List<SearchResponse> { override suspend fun search(query: String): List<SearchResponse> {
val q = query.replace(" ".toRegex(), "%20") val q = query.replace(" ".toRegex(), "%20")
val result = arrayListOf<SearchResponse>() val result = arrayListOf<SearchResponse>()

View file

@ -5,6 +5,7 @@ import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
import com.lagradost.cloudstream3.utils.AppUtils.parseJson import com.lagradost.cloudstream3.utils.AppUtils.parseJson
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.Jsoup import org.jsoup.Jsoup
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
@ -308,8 +309,12 @@ class MyCima : MainAPI() {
subtitleCallback: (SubtitleFile) -> Unit, subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit callback: (ExtractorLink) -> Unit
): Boolean { ): Boolean {
app.get(data).document val doc = app.get(data).document
.select("ul.List--Download--Mycima--Single:nth-child(2) li").map { doc.select(".WatchServersList > ul > li").apmap {
val url = it.select("btn").attr("data-url")
loadExtractor(url, data, subtitleCallback, callback)
}
doc.select("ul.List--Download--Mycima--Single:nth-child(2) li").apmap {
it.select("a").map { linkElement -> it.select("a").map { linkElement ->
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(

View file

@ -53,7 +53,7 @@ open class JWPlayer : ExtractorApi() {
) )
} }
class VidHD : JWPlayer() { class VidHDJW : JWPlayer() {
override val name = "VidHD" override val name = "VidHD"
override val mainUrl = "https://vidhd.fun" override val mainUrl = "https://vidhd.fun"
} }

View file

@ -7,8 +7,8 @@ import android.content.Context
class Shahid4uPlugin: Plugin() { class Shahid4uPlugin: Plugin() {
override fun load(context: Context) { override fun load(context: Context) {
registerMainAPI(Shahid4u()) registerMainAPI(Shahid4u())
registerExtractorAPI(VidHDJW())
registerExtractorAPI(VidHD()) registerExtractorAPI(VidHD())
registerExtractorAPI(GoStream()) registerExtractorAPI(GoStream())
registerExtractorAPI(Vidbom())
} }
} }