Compare commits
2 commits
e0558d9115
...
dc592f3a7e
Author | SHA1 | Date | |
---|---|---|---|
dc592f3a7e | |||
213e6a64e9 |
4 changed files with 15 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 4
|
version = 5
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
|
import com.lagradost.api.Log
|
||||||
import com.lagradost.cloudstream3.Episode
|
import com.lagradost.cloudstream3.Episode
|
||||||
import com.lagradost.cloudstream3.HomePageResponse
|
import com.lagradost.cloudstream3.HomePageResponse
|
||||||
import com.lagradost.cloudstream3.LoadResponse
|
import com.lagradost.cloudstream3.LoadResponse
|
||||||
|
@ -112,7 +113,7 @@ class SerialnoProvider : MainAPI() {
|
||||||
// Return to app
|
// Return to app
|
||||||
// Parse Episodes as Series
|
// Parse Episodes as Series
|
||||||
val playerRawJson = app.get(playerUrl).document.select("script").html()
|
val playerRawJson = app.get(playerUrl).document.select("script").html()
|
||||||
.substringAfterLast("file:\'")
|
.substringAfterLast("file: \'")
|
||||||
.substringBefore("\',")
|
.substringBefore("\',")
|
||||||
|
|
||||||
AppUtils.tryParseJson<List<PlayerJson>>(playerRawJson)?.map { dubs -> // Dubs
|
AppUtils.tryParseJson<List<PlayerJson>>(playerRawJson)?.map { dubs -> // Dubs
|
||||||
|
@ -148,9 +149,9 @@ class SerialnoProvider : MainAPI() {
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val dataList = data.split(", ")
|
val dataList = data.split(", ")
|
||||||
|
Log.d("CakesTwix-Debug", data)
|
||||||
val playerRawJson = app.get(dataList[2]).document.select("script").html()
|
val playerRawJson = app.get(dataList[2]).document.select("script").html()
|
||||||
.substringAfterLast("file:\'")
|
.substringAfterLast("file: \'")
|
||||||
.substringBefore("\',")
|
.substringBefore("\',")
|
||||||
|
|
||||||
AppUtils.tryParseJson<List<PlayerJson>>(playerRawJson)?.map { dubs -> // Dubs
|
AppUtils.tryParseJson<List<PlayerJson>>(playerRawJson)?.map { dubs -> // Dubs
|
||||||
|
@ -164,6 +165,14 @@ class SerialnoProvider : MainAPI() {
|
||||||
streamUrl = episode.file,
|
streamUrl = episode.file,
|
||||||
referer = "https://tortuga.wtf/"
|
referer = "https://tortuga.wtf/"
|
||||||
).last().let(callback)
|
).last().let(callback)
|
||||||
|
|
||||||
|
if(episode.subtitle.isNullOrBlank()) return true
|
||||||
|
subtitleCallback.invoke(
|
||||||
|
SubtitleFile(
|
||||||
|
episode.subtitle.substringAfterLast("[").substringBefore("]"),
|
||||||
|
episode.subtitle.substringAfter("]")
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 6
|
version = 7
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.google.code.gson:gson:2.9.0")
|
implementation("com.google.code.gson:gson:2.9.0")
|
||||||
|
|
|
@ -38,7 +38,7 @@ import javax.crypto.spec.SecretKeySpec
|
||||||
class UASerialsProProvider : MainAPI() {
|
class UASerialsProProvider : MainAPI() {
|
||||||
|
|
||||||
// Basic Info
|
// Basic Info
|
||||||
override var mainUrl = "https://uaserials.pro"
|
override var mainUrl = "https://uaserials.com"
|
||||||
override var name = "UASerialsPro"
|
override var name = "UASerialsPro"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "uk"
|
override var lang = "uk"
|
||||||
|
|
Loading…
Reference in a new issue