Merge branch 'recloudstream:master' into master

This commit is contained in:
KillerDogeEmpire 2022-09-10 15:47:25 -08:00 committed by GitHub
commit baa5c06378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import com.lagradost.cloudstream3.app
import com.lagradost.cloudstream3.utils.ExtractorApi
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper
import com.lagradost.cloudstream3.utils.Qualities
class GMPlayer : ExtractorApi() {
override val name = "GM Player"
@ -25,11 +26,16 @@ class GMPlayer : ExtractorApi() {
data = mapOf("hash" to id, "r" to ref)
).parsed<GmResponse>().videoSource ?: return null
return M3u8Helper.generateM3u8(
name,
m3u8,
ref,
headers = mapOf("accept" to "*/*")
return listOf(
ExtractorLink(
this.name,
this.name,
m3u8,
"",
Qualities.Unknown.value,
headers = mapOf("accept" to "*/*"),
isM3u8 = true
)
)
}