Compare commits

..

No commits in common. "7ba94d6e441fa61084cc0c5d3bdbb34c5270fb43" and "dd74d87cd84927d8da5260a3324123be01867701" have entirely different histories.

7 changed files with 9 additions and 27 deletions

View file

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

View file

@ -68,7 +68,7 @@ class SerialnoProvider : MainAPI() {
override suspend fun search(query: String): List<SearchResponse> {
val document = app.post(
url = "$mainUrl/",
url = "$mainUrl/index.php?do=search",
data = mapOf(
"do" to "search",
"subaction" to "search",

View file

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

View file

@ -1,7 +1,6 @@
package com.lagradost
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.lagradost.cloudstream3.DubStatus
import com.lagradost.cloudstream3.Episode
import com.lagradost.cloudstream3.HomePageResponse
@ -22,7 +21,6 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper
import com.lagradost.models.Media
import com.lagradost.models.MediaShows
import com.lagradost.models.Search
import com.lagradost.models.SeasonModel
import com.lagradost.models.TitleShows
import com.lagradost.models.VideoPlayer
@ -44,8 +42,6 @@ class TeleportalProvider : MainAPI() {
private val findUrl = "$apiUrl/ua/live-search?q="
private val playerUrl = "https://vcms-api2.starlight.digital/player-api/"
private val listSearch = object : TypeToken<List<Search>>() {}.type
// Sections
override val mainPage = mainPageOf(
"$apiUrl/ua/serials" to "Серіали",
@ -80,11 +76,10 @@ class TeleportalProvider : MainAPI() {
}
override suspend fun search(query: String): List<SearchResponse> {
return Gson().fromJson<List<Search>>(app.get("$findUrl$query").text, listSearch).map{
newAnimeSearchResponse(it.title, "$apiUrl/ua/${it.typeSlug}/${it.channelSlug}/${it.projectSlug}", TvType.TvSeries) {
this.posterUrl = "$mainUrl/${it.image}"
return app.get("$findUrl$query&page=1").parsedSafe<Media>()!!.items.map{
newAnimeSearchResponse(it.title, "$apiUrl${it.videoSlug}", TvType.TvSeries) {
this.posterUrl = "$mainUrl${it.image}"
}
}
}

View file

@ -1,14 +0,0 @@
package com.lagradost.models
data class Search (
val id : Int,
val title : String,
val age : Int,
val image : String,
val description : String,
val typeSlug : String,
val channelSlug : String,
val projectSlug : String,
val seasons : String
)

View file

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

View file

@ -8,6 +8,7 @@ import android.content.Context
class UASerialProviderPlugin: Plugin() {
override fun load(context: Context) {
// All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(UASerialProvider("https://uaserial.com", "UASerial"))
registerMainAPI(UASerialProvider("https://uaserial.tv", "UASerial"))
registerMainAPI(UASerialProvider("https://uaserial.club", "UASerial.club"))
}
}