From 3547b5c9948202170aa3b94eff83fbe33ae61079 Mon Sep 17 00:00:00 2001 From: LagradOst Date: Sat, 22 Jan 2022 16:36:55 +0100 Subject: [PATCH] zoro rapidcloud (#500) --- .../lagradost/cloudstream3/animeproviders/ZoroProvider.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/ZoroProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/ZoroProvider.kt index 61ef7b22..2a1cc405 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/ZoroProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/ZoroProvider.kt @@ -258,7 +258,10 @@ class ZoroProvider : MainAPI() { } 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", headers = mapOf( "Referer" to "https://zoro.to/",