Anime Http Source
A simple implementation for sources from a website. Usually requires the usage of json serialization or similar techniques.
Inheritors
Properties
Default network client for doing requests. Implementations can override this property for custom OkHttpClient instances.
Headers used for requests. Result of headersBuilder
Network service.
Whether the source has support for latest updates.
Functions
Parses the response from the site and returns the details of a anime.
Returns the request for the details of a anime. Override only if it's needed to change the url, send different headers or request method like POST.
Parses the response from the site and returns a list of episodes.
Returns the request for updating the episode list. Override only if it's needed to override the url, send different headers or request method like POST.
Returns an observable containing a page with a list of latest anime updates.
Returns an observable containing a page with a list of anime. Normally it's not needed to override this method.
Returns an observable containing a page with a list of anime. Normally it's not needed to override this method, but can be useful to change the usual workflow and use functions with different signatures from searchAnimeRequest or searchAnimeParse.
Get the updated details for a anime. Normally it's not needed to override this method.
Returns the url of the provided anime. Useful to fix "open in webview" without overriding getAnimeDetails.
Get all the available episodes for an anime. Normally it's not needed to override this method.
Returns the url of the provided episode.
Returns the list of filters for the source.
Get a page with a list of latest anime updates.
Get a page with a list of anime.
Get a page with a list of anime.
Get the list of videos a episode has. Videos should be returned in the expected order; the index is ignored.
Headers builder for requests. Implementations can override this method for custom headers.
Parses the response from the site and returns a AnimesPage object.
Returns the request for latest anime given the page.
Parses the response from the site and returns a AnimesPage object.
Returns the request for the popular anime given the page.
Called before inserting a new episode into database. Use it if you need to override episode fields, like the title or the episode number. Do not change anything to anime.
Parses the response from the site and returns a AnimesPage object.
Returns the request for the search anime given the page and filters.
Assigns the url of the anime without the scheme and domain. It saves some redundancy from database and the urls could still work after a domain change.
Assigns the url of the episode without the scheme and domain. It saves some redundancy from database and the urls could still work after a domain change.
Parses the response from the site and returns a list of videos.
Returns the request for getting the video list. Override only if it's needed to override the url, send different headers or request method like POST.
Returns the request for getting the url to the source video. Override only if it's needed to override the url, send different headers or request method like POST.