AnimeSource

interface AnimeSource(source)

A basic interface for creating a source. It could be an online source, a local source, etc...

Inheritors

Properties

Link copied to clipboard
abstract val id: Long

Id for the source. Must be unique.

Link copied to clipboard
abstract val name: String

Name of the source.

Link copied to clipboard
abstract val supportsLatest: Boolean

Whether the source has support for latest updates.

Link copied to clipboard

Whether this source supports related anime list for an entry

Functions

Link copied to clipboard
open suspend fun getAnimeDetails(anime: SAnime): SAnime
Link copied to clipboard
abstract suspend fun getAnimeEpisodeUpdate(anime: SAnime, episodes: List<SEpisode>, fetchDetails: Boolean, fetchEpisodes: Boolean): SAnimeEpisodeUpdate

Fetches updated information for an anime.

Link copied to clipboard
abstract suspend fun getAnimeSeasonUpdate(anime: SAnime, seasons: List<SAnime>, fetchDetails: Boolean, fetchSeasons: Boolean): SAnimeSeasonUpdate

Fetches updated information for an anime.

Link copied to clipboard
open suspend fun getEpisodeList(anime: SAnime): List<SEpisode>
Link copied to clipboard

Returns the list of filters for the source.

Link copied to clipboard
abstract suspend fun getHosterList(episode: SEpisode): List<Hoster>

Get the list of hoster for an episode.

Link copied to clipboard
abstract suspend fun getLatestUpdates(page: Int): AnimesPage

Get a page with a list of latest anime updates.

Link copied to clipboard
abstract suspend fun getPopularAnime(page: Int): AnimesPage

Get a page with a list of anime.

Link copied to clipboard
abstract suspend fun getRelatedAnimeList(anime: SAnime): List<AnimeRelation>

Get anime related to anime, grouped by relation label

Link copied to clipboard
abstract suspend fun getSearchAnime(page: Int, query: String, filters: AnimeFilterList): AnimesPage

Get a page with a list of anime.

Link copied to clipboard
open suspend fun getSeasonList(anime: SAnime): List<SAnime>
Link copied to clipboard
abstract suspend fun getVideoList(hoster: Hoster): List<Video>

Get the list of videos for a hoster.