Compare commits
3 commits
895dfb7d5f
...
dd74d87cd8
Author | SHA1 | Date | |
---|---|---|---|
dd74d87cd8 | |||
e993ef6e2d | |||
9948b26d60 |
7 changed files with 44 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 6
|
||||
version = 7
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -77,6 +77,7 @@ class EneyidaProvider : MainAPI() {
|
|||
val fullInfo = document.select(".full_info li")
|
||||
val title = document.selectFirst("div.full_header-title h1")?.text()?.trim().toString()
|
||||
val poster = mainUrl + document.selectFirst(".full_content-poster img")?.attr("src")
|
||||
val banner = document.select(".full_header__bg-img").attr("style").substringAfterLast("url(").substringBefore(");")
|
||||
val tags = fullInfo[1].select("a").map { it.text() }
|
||||
val year = fullInfo[0].select("a").text().toIntOrNull()
|
||||
val playerUrl = document.select(".tabs_b.visible iframe").attr("src")
|
||||
|
@ -116,6 +117,7 @@ class EneyidaProvider : MainAPI() {
|
|||
}
|
||||
newTvSeriesLoadResponse(title, url, TvType.TvSeries, episodes) {
|
||||
this.posterUrl = poster
|
||||
this.backgroundPosterUrl = banner
|
||||
this.year = year
|
||||
this.plot = description
|
||||
this.tags = tags
|
||||
|
@ -127,6 +129,7 @@ class EneyidaProvider : MainAPI() {
|
|||
} else { // Parse as Movie.
|
||||
newMovieLoadResponse(title, url, TvType.Movie, "$title, $playerUrl") {
|
||||
this.posterUrl = poster
|
||||
this.backgroundPosterUrl = banner
|
||||
this.year = year
|
||||
this.plot = description
|
||||
this.tags = tags
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 6
|
||||
version = 7
|
||||
|
||||
dependencies{
|
||||
implementation("com.google.code.gson:gson:2.9.0")
|
||||
|
|
|
@ -25,6 +25,7 @@ import com.lagradost.cloudstream3.toRatingInt
|
|||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.M3u8Helper
|
||||
import com.lagradost.models.PlayerJson
|
||||
import com.lagradost.models.Search
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
|
||||
|
@ -38,7 +39,7 @@ class HigoTVProvider : MainAPI() {
|
|||
override val hasDownloadSupport = true
|
||||
override val supportedTypes = setOf(TvType.Anime)
|
||||
|
||||
private val searchUrl = "https://higotv.fun/search/doSearch"
|
||||
private val searchUrl = "$mainUrl/search?query="
|
||||
|
||||
// Sections
|
||||
override val mainPage =
|
||||
|
@ -62,6 +63,7 @@ class HigoTVProvider : MainAPI() {
|
|||
private val ratingSelector = ".rt-tb"
|
||||
|
||||
private val listPlayer = object : TypeToken<List<PlayerJson>>() {}.type
|
||||
private val listSearch = object : TypeToken<List<Search>>() {}.type
|
||||
|
||||
private val TAG = "$name-Debug"
|
||||
|
||||
|
@ -90,9 +92,14 @@ class HigoTVProvider : MainAPI() {
|
|||
}
|
||||
|
||||
override suspend fun search(query: String): List<SearchResponse> {
|
||||
val document = app.post(url = searchUrl, data = mapOf("keyword" to query)).document
|
||||
|
||||
return document.select(animeSelector).map { it.toSearchResponse() }
|
||||
val document = app.get(searchUrl + query).text
|
||||
return gson.fromJson<List<Search>>(document, listSearch).map {
|
||||
newAnimeSearchResponse(it.name, "$mainUrl/movies/view/${it.slug}", TvType.Anime) {
|
||||
// this.otherName = engTitle
|
||||
this.posterUrl = it.poster
|
||||
addDubStatus(isDub = true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Detailed information
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
package com.lagradost.models
|
||||
|
||||
data class Search (
|
||||
|
||||
val id : Int,
|
||||
val slug : String,
|
||||
val name : String,
|
||||
val longname : String,
|
||||
val engname : String,
|
||||
val age : String,
|
||||
val genre : String,
|
||||
val year : Int,
|
||||
val add_date : String,
|
||||
val country : String,
|
||||
val flagicon : String,
|
||||
val regiser : String,
|
||||
val studio : String,
|
||||
val serii : String,
|
||||
val stan : String,
|
||||
val rating : Int,
|
||||
val description : String,
|
||||
val info_pro_anime : String,
|
||||
val poster : String,
|
||||
val trailer : String,
|
||||
val typeofanime : String,
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.jsoup.nodes.Element
|
|||
class KinoTronProvider : MainAPI() {
|
||||
|
||||
// Basic Info
|
||||
override var mainUrl = "https://kinotron.top"
|
||||
override var mainUrl = "https://kinotron.tv"
|
||||
override var name = "KinoTron"
|
||||
override val hasMainPage = true
|
||||
override var lang = "uk"
|
||||
|
|
Loading…
Reference in a new issue