Parsed Anime Http Source
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 a 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.
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.
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 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.
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.
Returns a video from the given element.
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 Jsoup selector that returns a list of Element corresponding to each video.
Returns the absolute url to the video url from the document.
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.