Compare commits

..

2 commits

Author SHA1 Message Date
dc592f3a7e
uaserialspro: Change url
All checks were successful
Build / build (push) Successful in 1m32s
2024-09-19 18:24:54 +03:00
213e6a64e9
serialno: Fix episode parsing 2024-09-19 18:24:40 +03:00
4 changed files with 15 additions and 6 deletions

View file

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

View file

@ -1,5 +1,6 @@
package com.lagradost
import com.lagradost.api.Log
import com.lagradost.cloudstream3.Episode
import com.lagradost.cloudstream3.HomePageResponse
import com.lagradost.cloudstream3.LoadResponse
@ -148,7 +149,7 @@ class SerialnoProvider : MainAPI() {
callback: (ExtractorLink) -> Unit
): Boolean {
val dataList = data.split(", ")
Log.d("CakesTwix-Debug", data)
val playerRawJson = app.get(dataList[2]).document.select("script").html()
.substringAfterLast("file: \'")
.substringBefore("\',")
@ -164,6 +165,14 @@ class SerialnoProvider : MainAPI() {
streamUrl = episode.file,
referer = "https://tortuga.wtf/"
).last().let(callback)
if(episode.subtitle.isNullOrBlank()) return true
subtitleCallback.invoke(
SubtitleFile(
episode.subtitle.substringAfterLast("[").substringBefore("]"),
episode.subtitle.substringAfter("]")
)
)
}
}
}

View file

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

View file

@ -38,7 +38,7 @@ import javax.crypto.spec.SecretKeySpec
class UASerialsProProvider : MainAPI() {
// Basic Info
override var mainUrl = "https://uaserials.pro"
override var mainUrl = "https://uaserials.com"
override var name = "UASerialsPro"
override val hasMainPage = true
override var lang = "uk"