uaserialspro: http tortuga

This commit is contained in:
CakesTwix 2024-04-07 13:30:23 +03:00
parent a326fb7bea
commit 1cd64e0ab7
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 3 version = 4
dependencies { dependencies {
implementation("com.google.code.gson:gson:2.9.0") implementation("com.google.code.gson:gson:2.9.0")

View file

@ -1,5 +1,7 @@
package com.lagradost package com.lagradost
import android.util.Log
import com.lagradost.cloudstream3.USER_AGENT
import com.google.gson.Gson import com.google.gson.Gson
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
import com.google.gson.reflect.TypeToken import com.google.gson.reflect.TypeToken
@ -225,8 +227,8 @@ class UASerialsProProvider : 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)
return true return true
} }
@ -249,7 +251,7 @@ class UASerialsProProvider : MainAPI() {
.substringBefore("\",") .substringBefore("\",")
M3u8Helper.generateM3u8( M3u8Helper.generateM3u8(
source = episode.title, source = episode.title,
streamUrl = m3u8Url, streamUrl = m3u8Url.replace("https://", "http://"),
referer = "https://tortuga.wtf/" referer = "https://tortuga.wtf/"
).forEach(callback) ).forEach(callback)
} }