diff --git a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/XcineProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/XcineProvider.kt index 05fd843e..82f5f186 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/XcineProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/XcineProvider.kt @@ -231,30 +231,27 @@ class XcineProvider : MainAPI() { cookies = parsed.cookies + cookies, ).text - val jsonRegex = Regex("""(vip_|)source.*?(\[.*);""") - val json = jsonRegex.findAll(response) + val urlRegex = Regex("""file['"].*?['"]([^'"]*)""") + val link = urlRegex.find(response)?.groupValues!![1] - val files = json.mapNotNull { - (it.groupValues.getOrNull(1) == "vip_") to ( - tryParseJson>(it.groupValues.getOrNull(2)) ?: return@mapNotNull null) - } +// files.forEach { (isVip, list) -> +// list.forEach file@{ file -> +// if (file.file == null) return@file + callback.invoke( + ExtractorLink( + this.name, + this.name, + link.replace("\\", ""), + this.mainUrl, +// file.label?.getIntFromText() ?: + Qualities.Unknown.value, + true +// file.type?.contains("hls", ignoreCase = true) == true, + ) + ) +// } +// } - files.forEach { (isVip, list) -> - list.forEach file@{ file -> - if (file.file == null) return@file - callback.invoke( - ExtractorLink( - this.name, - this.name + if (isVip) " VIP" else "", - file.file.replace("\\", ""), - this.mainUrl, - file.label?.getIntFromText() ?: Qualities.Unknown.value, - file.type?.contains("hls", ignoreCase = true) == true, - ) - ) - } - } - - return files.sumOf { it.second.size } > 0 + return true // files.sumOf { it.second.size } > 0 } }