getLinks

open suspend fun getLinks(watchId: String, film: FilmMetadata, episode: Episode? = null, onLinkFound: (MediaLink) -> Unit)

Obtains resource links for the provided film, season, and episode.

Return

a list of MediaLink objects representing the links for the film.

Parameters

watchId

The unique watch identifier for the film.

film

The detailed film object of the film. Notice that it is a FilmMetadata and not a Film object, this means that this film object has full details and not just the partial info of it. It could either be a Movie or TvShow.

episode

The Episode object of the episode. Defaults to null for movies.

onLinkFound

A callback function that is invoked when a Stream or Subtitle is found.


open suspend fun getLinks(watchId: String, film: FilmDetails, episode: Episode? = null, onLinkFound: (MediaLink) -> Unit)

Deprecated

Use the other getLinks instead that uses FilmMetadata

Replace with

getLinks(watchId, film, episode, onLinkFound)

Obtains resource links for the provided film, season, and episode.

Return

a list of MediaLink objects representing the links for the film.

Parameters

watchId

The unique watch identifier for the film.

film

The detailed film object of the film. Notice that it is a FilmDetails and not a Film object, this means that this film object has full details and not just the partial info of it. It could either be a Movie or TvShow.

episode

The Episode object of the episode. Defaults to null for movies.

onLinkFound

A callback function that is invoked when a Stream or Subtitle is found.