mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Animixplay movie
This commit is contained in:
parent
710bac36c4
commit
d4ff3f65ee
3 changed files with 10 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -202,7 +202,7 @@ class Animixplay : MainAPI() {
|
||||||
return newAnimeLoadResponse(
|
return newAnimeLoadResponse(
|
||||||
res.title ?: return null,
|
res.title ?: return null,
|
||||||
url,
|
url,
|
||||||
getType(res.type)
|
TvType.Anime
|
||||||
) {
|
) {
|
||||||
engName = res.title
|
engName = res.title
|
||||||
posterUrl = res.imageUrl
|
posterUrl = res.imageUrl
|
||||||
|
|
|
@ -4,10 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.mvvm.normalSafeApiCall
|
import com.lagradost.cloudstream3.mvvm.normalSafeApiCall
|
||||||
import com.lagradost.cloudstream3.mvvm.safeApiCall
|
import com.lagradost.cloudstream3.mvvm.safeApiCall
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils
|
import com.lagradost.cloudstream3.utils.*
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
|
||||||
import com.lagradost.cloudstream3.utils.getQualityFromName
|
|
||||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
@ -139,24 +136,16 @@ class GogoanimeProvider : MainAPI() {
|
||||||
val datadecrypted = cryptoHandler(dataencrypted, foundIv, foundDecryptKey, false)
|
val datadecrypted = cryptoHandler(dataencrypted, foundIv, foundDecryptKey, false)
|
||||||
val sources = AppUtils.parseJson<GogoSources>(datadecrypted)
|
val sources = AppUtils.parseJson<GogoSources>(datadecrypted)
|
||||||
|
|
||||||
fun invokeGogoSource(
|
suspend fun invokeGogoSource(
|
||||||
source: GogoSource,
|
source: GogoSource,
|
||||||
sourceCallback: (ExtractorLink) -> Unit
|
sourceCallback: (ExtractorLink) -> Unit
|
||||||
) {
|
) {
|
||||||
sourceCallback.invoke(
|
M3u8Helper.generateM3u8(
|
||||||
ExtractorLink(
|
|
||||||
mainApiName,
|
|
||||||
mainApiName,
|
mainApiName,
|
||||||
source.file,
|
source.file,
|
||||||
mainUrl,
|
mainUrl,
|
||||||
getQualityFromName(source.label),
|
headers = mapOf("Origin" to "https://plyr.link")
|
||||||
isM3u8 = source.type == "hls" || source.label?.contains(
|
).forEach(sourceCallback)
|
||||||
"auto",
|
|
||||||
ignoreCase = true
|
|
||||||
) == true,
|
|
||||||
mapOf("Origin" to "https://gogohd.net")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sources.source?.forEach {
|
sources.source?.forEach {
|
||||||
|
|
Loading…
Reference in a new issue