ProviderApi
The base class for every provider api.
An api will provide content based on configurations. It could also be used to search for films and retrieve detailed information about them.
Inheritors
Properties
Link copied to clipboard
The list of ProviderCatalogs that this provider provides. Defaults to an empty list.
Link copied to clipboard
The list of Filters that this provider's search method supports. Defaults to an empty list.
Link copied to clipboard
The Film to use for testing purposes. Defaults to The Godfather (1972).
Functions
Link copied to clipboard
open suspend fun getCatalogItems(catalog: ProviderCatalog, page: Int = 1): SearchResponseData<FilmSearchItem>
Link copied to clipboard
Retrieves detailed information about a film.
Link copied to clipboard
open suspend fun getLinks(watchId: String, film: FilmDetails, episode: Episode? = null, onLinkFound: (MediaLink) -> Unit)
open suspend fun getLinks(watchId: String, film: FilmMetadata, episode: Episode? = null, onLinkFound: (MediaLink) -> Unit)
Obtains resource links for the provided film, season, and episode.
Link copied to clipboard
Retrieves detailed information about a film.
Link copied to clipboard
open suspend fun search(title: String, page: Int = 1, id: String? = null, imdbId: String? = null, tmdbId: Int? = null, filters: FilterList = this.filters): SearchResponseData<FilmSearchItem>
Searches for films based on the provided criteria.