mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
zoro rapidcloud (#500)
This commit is contained in:
parent
8f116dc959
commit
3547b5c994
1 changed files with 4 additions and 1 deletions
|
@ -258,7 +258,10 @@ class ZoroProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getM3u8FromRapidCloud(url: String): String {
|
private fun getM3u8FromRapidCloud(url: String): String {
|
||||||
return app.get(
|
return Regex("""/(embed-\d+)/(.*?)\?z=""").find(url)?.groupValues?.let {
|
||||||
|
val jsonLink = "https://rapid-cloud.ru/ajax/${it[1]}/getSources?id=${it[2]}"
|
||||||
|
app.get(jsonLink).text
|
||||||
|
} ?: app.get(
|
||||||
"$url&autoPlay=1&oa=0",
|
"$url&autoPlay=1&oa=0",
|
||||||
headers = mapOf(
|
headers = mapOf(
|
||||||
"Referer" to "https://zoro.to/",
|
"Referer" to "https://zoro.to/",
|
||||||
|
|
Loading…
Reference in a new issue