ResolvableAnimeSource

A source that may handle opening an SAnime or SEpisode for a given URI.

Since

extensions-lib 14

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.

Functions

Link copied to clipboard
abstract fun fetchAnimeDetails(anime: SAnime): Observable<SAnime>
Link copied to clipboard
Link copied to clipboard
abstract fun fetchVideoList(episode: SEpisode): Observable<List<Video>>
Link copied to clipboard
abstract suspend fun getAnime(uri: String): SAnime?

Called if getUriType is UriType.Anime. Returns the corresponding SAnime, if possible.

Link copied to clipboard
abstract suspend fun getAnimeDetails(anime: SAnime): SAnime

Get the updated details for a anime.

Link copied to clipboard
abstract suspend fun getEpisode(uri: String): SEpisode?

Called if getUriType is UriType.Episode. Returns the corresponding SEpisode, if possible.

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

Get all the available episodes for a anime.

Link copied to clipboard
abstract fun getUriType(uri: String): UriType

Returns what the given URI may open. Returns UriType.Unknown if the source is not able to resolve the URI.

Link copied to clipboard
abstract suspend fun getVideoList(episode: SEpisode): List<Video>

Get the list of videos a episode has.