Hoster

class Hoster(val hosterUrl: String = "", val hosterName: String = "", val videoList: List<Video>? = null, val internalData: String = "", val lazy: Boolean = false, val memo: JsonObject = JsonObject(emptyMap()))(source)

Class to represent a "hoster", i.e. a representation of a group of videos coming from the same source, for example a site which has multiple servers, each server with a list of videos.

Parameters

hosterUrl

The url of the hoster

hosterName

The display name of the hoster

videoList

If the list of video's can be constructed without additional network requests, set the videoList to avoid calling getVideoList on the hoster

lazy

Specify a hoster as lazy, which means that the hoster won't load until the user clicks on it

memo

Extra metadata associated with the hoster. The JSON object is not visible to users and intended for internal or source-specific purposes. Apps may define their own namespaced keys (e.g., "aniyomi.*") for sources to populate.

Constructors

Link copied to clipboard
constructor(hosterUrl: String = "", hosterName: String = "", videoList: List<Video>? = null, internalData: String = "", lazy: Boolean = false, memo: JsonObject = JsonObject(emptyMap()))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val memo: JsonObject
Link copied to clipboard