mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
update m3u8helper in chillx
This commit is contained in:
parent
422770ae19
commit
db1d5f64eb
1 changed files with 7 additions and 12 deletions
|
@ -7,7 +7,7 @@ import com.lagradost.cloudstream3.extractors.helper.AesHelper.cryptoAESHandler
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils
|
import com.lagradost.cloudstream3.utils.AppUtils
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorApi
|
import com.lagradost.cloudstream3.utils.ExtractorApi
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
import com.lagradost.cloudstream3.utils.Qualities
|
import com.lagradost.cloudstream3.utils.M3u8Helper
|
||||||
|
|
||||||
class Moviesapi : Chillx() {
|
class Moviesapi : Chillx() {
|
||||||
override val name = "Moviesapi"
|
override val name = "Moviesapi"
|
||||||
|
@ -64,17 +64,12 @@ open class Chillx : ExtractorApi() {
|
||||||
"Origin" to mainUrl,
|
"Origin" to mainUrl,
|
||||||
)
|
)
|
||||||
|
|
||||||
callback.invoke(
|
M3u8Helper.generateM3u8(
|
||||||
ExtractorLink(
|
name,
|
||||||
name,
|
source ?: return,
|
||||||
name,
|
"$mainUrl/",
|
||||||
source ?: return,
|
headers = headers
|
||||||
"$mainUrl/",
|
).forEach(callback)
|
||||||
Qualities.P1080.value,
|
|
||||||
headers = headers,
|
|
||||||
isM3u8 = true
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
AppUtils.tryParseJson<List<Tracks>>("[$tracks]")
|
AppUtils.tryParseJson<List<Tracks>>("[$tracks]")
|
||||||
?.filter { it.kind == "captions" }?.map { track ->
|
?.filter { it.kind == "captions" }?.map { track ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue