Parsed Anime Http Source
Deprecated
In most cases sources only require a subset of the methods from this class. Source developers should make their own implementation according to their needs.
A simple implementation for sources from a website using Jsoup, an HTML parser.
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 details of the anime from the given document.
Returns the request for the details of an anime. Override only if it's needed to change the url, send different headers or request method like POST.
Returns a episode from the given element.
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 the Jsoup selector that returns a list of Element corresponding to each episode.
Get the updated details for an 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 the list of hoster for an episode.
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 all the available seasons for an anime. Normally it's not needed to override this method.
Get the list of videos for a hoster.
Headers builder for requests. Implementations can override this method for custom headers.
Parses the response from the site and returns a list of hosters.
Returns the request for getting the hosters. Override only if it's needed to override the url, send different headers or request method like POST.
Returns a anime from the given element. Most sites only show the title and the url, it's totally fine to fill only those two values.
Returns the Jsoup selector that returns the tag linking to the next page, or null if there's no next page.
Parses the response from the site and returns a AnimesPage object.
Returns the request for latest anime given the page.
Returns the Jsoup selector that returns a list of Element corresponding to each anime.
Returns a anime from the given element. Most sites only show the title and the url, it's totally fine to fill only those two values.
Returns the Jsoup selector that returns the tag linking to the next page, or null if there's no next page.
Parses the response from the site and returns a AnimesPage object.
Returns the request for the popular anime given the page.
Returns the Jsoup selector that returns a list of Element corresponding to each anime.
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.
Returns the resolved video of the episode link. Override only if it's needed to resolve the video.
Returns a anime from the given element. Most sites only show the title and the url, it's totally fine to fill only those two values.
Returns the Jsoup selector that returns the tag linking to the next page, or null if there's no next page.
Parses the response from the site and returns a AnimesPage object.
Returns the request for the search anime given the page and filters.
Returns the Jsoup selector that returns a list of Element corresponding to each anime.
Returns a season from the given element.
Parses the response from the site and returns a list of seasons.
Returns the request for updating the season list. Override only if it's needed to override the url, send different headers or request method like POST.
Returns the Jsoup selector that returns a list of Element corresponding to each season.
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.
Sorts the hoster list. Override this according to the user's preference. This function is called by the app and should not be called in the extension.
Sorts the video list for a hoster. Override this according to the user's preference. This function is called by the app and should not be called in the extension.
Parses the response from the hoster and returns a list of videos.
Returns the request for getting the hosters. 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.