Merge branch 'recloudstream:master' into arabicSubs100%

This commit is contained in:
SANCTI-afk 2022-09-11 05:35:36 +02:00 committed by GitHub
commit d19c56a5b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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