Compare commits
No commits in common. "7ba94d6e441fa61084cc0c5d3bdbb34c5270fb43" and "dd74d87cd84927d8da5260a3324123be01867701" have entirely different histories.
7ba94d6e44
...
dd74d87cd8
7 changed files with 9 additions and 27 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 4
|
version = 3
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -68,7 +68,7 @@ class SerialnoProvider : MainAPI() {
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
val document = app.post(
|
val document = app.post(
|
||||||
url = "$mainUrl/",
|
url = "$mainUrl/index.php?do=search",
|
||||||
data = mapOf(
|
data = mapOf(
|
||||||
"do" to "search",
|
"do" to "search",
|
||||||
"subaction" to "search",
|
"subaction" to "search",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 3
|
version = 2
|
||||||
|
|
||||||
dependencies{
|
dependencies{
|
||||||
implementation("com.google.code.gson:gson:2.9.0")
|
implementation("com.google.code.gson:gson:2.9.0")
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.google.gson.reflect.TypeToken
|
|
||||||
import com.lagradost.cloudstream3.DubStatus
|
import com.lagradost.cloudstream3.DubStatus
|
||||||
import com.lagradost.cloudstream3.Episode
|
import com.lagradost.cloudstream3.Episode
|
||||||
import com.lagradost.cloudstream3.HomePageResponse
|
import com.lagradost.cloudstream3.HomePageResponse
|
||||||
|
@ -22,7 +21,6 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
import com.lagradost.cloudstream3.utils.M3u8Helper
|
import com.lagradost.cloudstream3.utils.M3u8Helper
|
||||||
import com.lagradost.models.Media
|
import com.lagradost.models.Media
|
||||||
import com.lagradost.models.MediaShows
|
import com.lagradost.models.MediaShows
|
||||||
import com.lagradost.models.Search
|
|
||||||
import com.lagradost.models.SeasonModel
|
import com.lagradost.models.SeasonModel
|
||||||
import com.lagradost.models.TitleShows
|
import com.lagradost.models.TitleShows
|
||||||
import com.lagradost.models.VideoPlayer
|
import com.lagradost.models.VideoPlayer
|
||||||
|
@ -44,8 +42,6 @@ class TeleportalProvider : MainAPI() {
|
||||||
private val findUrl = "$apiUrl/ua/live-search?q="
|
private val findUrl = "$apiUrl/ua/live-search?q="
|
||||||
private val playerUrl = "https://vcms-api2.starlight.digital/player-api/"
|
private val playerUrl = "https://vcms-api2.starlight.digital/player-api/"
|
||||||
|
|
||||||
private val listSearch = object : TypeToken<List<Search>>() {}.type
|
|
||||||
|
|
||||||
// Sections
|
// Sections
|
||||||
override val mainPage = mainPageOf(
|
override val mainPage = mainPageOf(
|
||||||
"$apiUrl/ua/serials" to "Серіали",
|
"$apiUrl/ua/serials" to "Серіали",
|
||||||
|
@ -80,11 +76,10 @@ class TeleportalProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
return Gson().fromJson<List<Search>>(app.get("$findUrl$query").text, listSearch).map{
|
return app.get("$findUrl$query&page=1").parsedSafe<Media>()!!.items.map{
|
||||||
newAnimeSearchResponse(it.title, "$apiUrl/ua/${it.typeSlug}/${it.channelSlug}/${it.projectSlug}", TvType.TvSeries) {
|
newAnimeSearchResponse(it.title, "$apiUrl${it.videoSlug}", TvType.TvSeries) {
|
||||||
this.posterUrl = "$mainUrl/${it.image}"
|
this.posterUrl = "$mainUrl${it.image}"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
)
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 9
|
version = 8
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.google.code.gson:gson:2.9.0")
|
implementation("com.google.code.gson:gson:2.9.0")
|
||||||
|
|
|
@ -8,6 +8,7 @@ import android.content.Context
|
||||||
class UASerialProviderPlugin: Plugin() {
|
class UASerialProviderPlugin: Plugin() {
|
||||||
override fun load(context: Context) {
|
override fun load(context: Context) {
|
||||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
// 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"))
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue