MovieLoadResponse

data class MovieLoadResponse(    var name: String,     var url: String,     var apiName: String,     var type: TvType,     var dataUrl: String,     var posterUrl: String? = null,     var year: Int? = null,     var plot: String? = null,     var rating: Int? = null,     var tags: List<String>? = null,     var duration: Int? = null,     var trailers: MutableList<TrailerData> = mutableListOf(),     var recommendations: List<SearchResponse>? = null,     var actors: List<ActorData>? = null,     var comingSoon: Boolean = false,     var syncData: MutableMap<String, String> = mutableMapOf(),     var posterHeaders: Map<String, String>? = null,     var backgroundPosterUrl: String? = null,     var contentRating: String? = null) : LoadResponse(source)

Data class of LoadResponse interface for Movies.

See also

Constructors

Link copied to clipboard
constructor(    name: String,     url: String,     apiName: String,     type: TvType,     dataUrl: String,     posterUrl: String? = null,     year: Int? = null,     plot: String? = null,     rating: Int? = null,     tags: List<String>? = null,     duration: Int? = null,     trailers: MutableList<TrailerData> = mutableListOf(),     recommendations: List<SearchResponse>? = null,     actors: List<ActorData>? = null,     comingSoon: Boolean = false,     syncData: MutableMap<String, String> = mutableMapOf(),     posterHeaders: Map<String, String>? = null,     backgroundPosterUrl: String? = null)

Secondary constructor for backwards compatibility without contentRating. Remove this constructor after there is a new stable release and extensions are updated to support contentRating.

constructor(    name: String,     url: String,     apiName: String,     type: TvType,     dataUrl: String,     posterUrl: String? = null,     year: Int? = null,     plot: String? = null,     rating: Int? = null,     tags: List<String>? = null,     duration: Int? = null,     trailers: MutableList<TrailerData> = mutableListOf(),     recommendations: List<SearchResponse>? = null,     actors: List<ActorData>? = null,     comingSoon: Boolean = false,     syncData: MutableMap<String, String> = mutableMapOf(),     posterHeaders: Map<String, String>? = null,     backgroundPosterUrl: String? = null,     contentRating: String? = null)

Properties

Link copied to clipboard
open override var actors: List<ActorData>?

list of the ActorData casted in the media, appears on result page.

Link copied to clipboard
open override var apiName: String

Plugin name, appears on result page.

Link copied to clipboard
open override var backgroundPosterUrl: String?

Url of the media background poster.

Link copied to clipboard
open override var comingSoon: Boolean

determines if the media is released or coming soon.

Link copied to clipboard
open override var contentRating: String?

content rating of the media, appears on result page.

Link copied to clipboard
Link copied to clipboard
open override var duration: Int?

duration of the media, appears on result page.

Link copied to clipboard
open override var name: String

Title of the media, appears on result page.

Link copied to clipboard
open override var plot: String?

Plot of the media, appears on result page.

Link copied to clipboard
open override var posterHeaders: Map<String, String>?

headers map used by network request to get the poster.

Link copied to clipboard
open override var posterUrl: String?

Url of the media poster, appears on Top of result page.

Link copied to clipboard
open override var rating: Int?

Rating of the media, appears on result page (0-10000).

Link copied to clipboard
open override var recommendations: List<SearchResponse>?

list of the SearchResponse related to media, appears on result page.

Link copied to clipboard
open override var syncData: MutableMap<String, String>

Online sync services compatible with the media.

Link copied to clipboard
open override var tags: List<String>?

Tags of the media, appears on result page.

Link copied to clipboard
open override var trailers: MutableList<TrailerData>

list of the media TrailerData, used to load trailers.

Link copied to clipboard
open override var type: TvType

TvType of the media .

Link copied to clipboard
open override var url: String

Url of the media.

Link copied to clipboard
open override var year: Int?

Year of the media, appears on result page.

Functions

Link copied to clipboard
@JvmName(name = "addActorsOnly")
fun LoadResponse.addActors(actors: List<Actor>?)
@JvmName(name = "addActorsRole")
fun LoadResponse.addActors(actors: List<Pair<Actor, ActorRole?>>?)
@JvmName(name = "addActors")
fun LoadResponse.addActors(actors: List<Pair<Actor, String?>>?)
@JvmName(name = "addActorNames")
fun LoadResponse.addActors(actors: List<String>?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun LoadResponse.addPoster(url: String?, headers: Map<String, String>? = null)

Extension function that adds poster to LoadResponse

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun LoadResponse.addTrailer(trailerUrl: String?, referer: String? = null, addRaw: Boolean = false)

better to call addTrailer with multiple trailers directly instead of calling this multiple times

suspend fun LoadResponse.addTrailer(trailerUrls: List<String>?, referer: String? = null, addRaw: Boolean = false)
suspend fun LoadResponse.addTrailer(trailerUrl: String?, referer: String? = null, addRaw: Boolean = false, headers: Map<String, String> = mapOf())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extension function of LoadResponse to check if it's Anime based.

Link copied to clipboard

Extension function of LoadResponse to check if it's Episode based.

Link copied to clipboard