From a326fb7bea9aefbc8f6098d133207e13f896c652 Mon Sep 17 00:00:00 2001 From: CakesTwix Date: Sun, 7 Apr 2024 12:47:20 +0300 Subject: [PATCH] eneyida: TEST: try fix tortuga player --- EneyidaProvider/build.gradle.kts | 2 +- .../src/main/kotlin/com/lagradost/EneyidaProvider.kt | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/EneyidaProvider/build.gradle.kts b/EneyidaProvider/build.gradle.kts index 76ce47c..bb95aa8 100644 --- a/EneyidaProvider/build.gradle.kts +++ b/EneyidaProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 2 +version = 3 cloudstream { diff --git a/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt b/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt index 9fbd996..2e71281 100644 --- a/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt +++ b/EneyidaProvider/src/main/kotlin/com/lagradost/EneyidaProvider.kt @@ -1,5 +1,6 @@ package com.lagradost +import android.util.Log import com.lagradost.models.PlayerJson import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.LoadResponse.Companion.addActors @@ -7,7 +8,9 @@ import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.M3u8Helper +import com.lagradost.cloudstream3.utils.Qualities import org.jsoup.nodes.Element +import java.net.URL class EneyidaProvider : MainAPI() { @@ -154,7 +157,7 @@ class EneyidaProvider : MainAPI() { .substringBefore("\",") M3u8Helper.generateM3u8( source = dataList[0], - streamUrl = m3u8Url, + streamUrl = m3u8Url.replace("https://", "http://"), referer = "https://tortuga.wtf/" ).forEach(callback) @@ -173,7 +176,7 @@ class EneyidaProvider : MainAPI() { // Add as source M3u8Helper.generateM3u8( source = dubs.title, - streamUrl = episode.file, + streamUrl = episode.file.replace("https://", "http://"), referer = "https://tortuga.wtf/" ).forEach(callback) }