TorrentLoadResponse
data class TorrentLoadResponse(var name: String, var url: String, var apiName: String, var magnet: String?, var torrent: String?, var plot: String?, var type: TvType = TvType.Torrent, var posterUrl: String? = null, var year: Int? = null, var score: Score? = 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, var uniqueUrl: String = url) : LoadResponse(source)
Data class of LoadResponse interface for Torrent.
See also
Constructors
Link copied to clipboard
constructor(name: String, url: String, apiName: String, magnet: String?, torrent: String?, plot: String?, type: TvType = TvType.Torrent, posterUrl: String? = null, year: Int? = null, score: Score? = 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, uniqueUrl: String = url)
Properties
Link copied to clipboard
Url of the media background poster.
Link copied to clipboard
determines if the media is released or coming soon.
Link copied to clipboard
content rating of the media, appears on result page.
Link copied to clipboard
headers map used by network request to get the poster.
Link copied to clipboard
list of the SearchResponse related to media, appears on result page.
Link copied to clipboard
Online sync services compatible with the media.
Link copied to clipboard
list of the media TrailerData, used to load trailers.
Functions
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
Link copied to clipboard
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
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