mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
update stremiox
This commit is contained in:
parent
e008764fd1
commit
4cdfa5802d
4 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 11
|
||||
version = 12
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -13,8 +13,9 @@ import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
|||
import java.net.URI
|
||||
import java.util.ArrayList
|
||||
import kotlin.math.roundToInt
|
||||
import com.lagradost.cloudstream3.metaproviders.TmdbProvider
|
||||
|
||||
open class StremioX : MainAPI() {
|
||||
open class StremioX : TmdbProvider() {
|
||||
override var mainUrl = "https://torrentio.strem.fun"
|
||||
override var name = "StremioX"
|
||||
override val hasMainPage = true
|
||||
|
@ -181,6 +182,7 @@ open class StremioX : MainAPI() {
|
|||
this.showStatus = getStatus(res.status)
|
||||
this.recommendations = recommendations
|
||||
this.actors = actors
|
||||
this.contentRating = fetchContentRating(data.id, "US")
|
||||
addTrailer(trailer)
|
||||
addTMDbId(data.id.toString())
|
||||
addImdbId(res.external_ids?.imdb_id)
|
||||
|
@ -202,6 +204,7 @@ open class StremioX : MainAPI() {
|
|||
this.rating = rating
|
||||
this.recommendations = recommendations
|
||||
this.actors = actors
|
||||
this.contentRating = fetchContentRating(data.id, "US")
|
||||
addTrailer(trailer)
|
||||
addTMDbId(data.id.toString())
|
||||
addImdbId(res.external_ids?.imdb_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue