eneyida: TEST: try fix tortuga player

This commit is contained in:
CakesTwix 2024-04-07 12:47:20 +03:00
parent ca1995c7ba
commit a326fb7bea
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 2 version = 3
cloudstream { cloudstream {

View file

@ -1,5 +1,6 @@
package com.lagradost package com.lagradost
import android.util.Log
import com.lagradost.models.PlayerJson import com.lagradost.models.PlayerJson
import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors 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.AppUtils.tryParseJson
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper import com.lagradost.cloudstream3.utils.M3u8Helper
import com.lagradost.cloudstream3.utils.Qualities
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.net.URL
class EneyidaProvider : MainAPI() { class EneyidaProvider : MainAPI() {
@ -154,7 +157,7 @@ class EneyidaProvider : MainAPI() {
.substringBefore("\",") .substringBefore("\",")
M3u8Helper.generateM3u8( M3u8Helper.generateM3u8(
source = dataList[0], source = dataList[0],
streamUrl = m3u8Url, streamUrl = m3u8Url.replace("https://", "http://"),
referer = "https://tortuga.wtf/" referer = "https://tortuga.wtf/"
).forEach(callback) ).forEach(callback)
@ -173,7 +176,7 @@ class EneyidaProvider : MainAPI() {
// Add as source // Add as source
M3u8Helper.generateM3u8( M3u8Helper.generateM3u8(
source = dubs.title, source = dubs.title,
streamUrl = episode.file, streamUrl = episode.file.replace("https://", "http://"),
referer = "https://tortuga.wtf/" referer = "https://tortuga.wtf/"
).forEach(callback) ).forEach(callback)
} }