mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix GMPlayer audio
This commit is contained in:
parent
93b60a023e
commit
dc6af1df43
1 changed files with 11 additions and 5 deletions
|
@ -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
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue