From a11d9071e59528bbe76f6ecaf8356a2e61fa29d4 Mon Sep 17 00:00:00 2001 From: hexated Date: Tue, 7 Mar 2023 01:14:17 +0700 Subject: [PATCH] Oploverz: fixed sources --- OploverzProvider/build.gradle.kts | 2 +- .../src/main/kotlin/com/hexated/OploverzProvider.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OploverzProvider/build.gradle.kts b/OploverzProvider/build.gradle.kts index fc0656bf..30ca2501 100644 --- a/OploverzProvider/build.gradle.kts +++ b/OploverzProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 10 +version = 11 cloudstream { diff --git a/OploverzProvider/src/main/kotlin/com/hexated/OploverzProvider.kt b/OploverzProvider/src/main/kotlin/com/hexated/OploverzProvider.kt index 8000f424..a8cad9c3 100644 --- a/OploverzProvider/src/main/kotlin/com/hexated/OploverzProvider.kt +++ b/OploverzProvider/src/main/kotlin/com/hexated/OploverzProvider.kt @@ -202,7 +202,7 @@ class OploverzProvider : MainAPI() { if (streamingSources.isNotEmpty()) sources.addAll(streamingSources) val downloadSources = - document.select("div.mctnx div:contains(mp4) div.soraurlx").mapNotNull { item -> + document.select("div.mctnx div.soraurlx").mapNotNull { item -> item.select("a").map { item.select("strong").text() to it.attr("href") } }.flatten() if (downloadSources.isNotEmpty()) sources.addAll(downloadSources)