Package-level declarations
Types
Data class of LoadResponse interface for Anime.
Data class of SearchResponse interface for Anime.
Episode information that will be passed to LoadLinks function & showed on UI
Abstract interface of EpisodeResponse
Data class for the Homepage list info.
Data class for the Homepage response info.
Data class of SearchResponse interface for Live streams.
Data class of LoadResponse interface for Live streams.
Abstract interface of LoadResponse responses
Data class of LoadResponse interface for Movies.
Data class of SearchResponse interface for Movies.
Data class holds next airing Episode info.
Api has not yet been published to stable, and will cause NoSuchMethodException
on stable
enum class determines provider type:
enum class holds search quality.
Abstract interface of SearchResponse.
Data class holds season info.
enum class determines Show status (Completed or Ongoing)
Set of sync services simkl is compatible with. Add more as required: https://simkl.docs.apiary.io/#reference/search/id-lookup/get-items-by-id
Data class for the Subtitle file info.
Data class of LoadResponse interface for Torrent.
Data class of SearchResponse interface for Torrent.
used for the getTracker() method
Data class of LoadResponse interface for Tv series.
Data class of SearchResponse interface for Tv series.
Properties
Functions
If episodes already exist appends the list.
Extension function that adds poster to LoadResponse
Extension function that adds poster to SearchResponse
Extension function that adds quality to SearchResponse
Might need a different implementation for desktop
Capitalize the first letter of string.
Capitalize the first letter of string.
Extension function to get the folder prefix based on the TvType. Non-episode-based types will return a base folder name, while episode-based types will have their files placed in subfolders using a sanitized title name.
Returns SearchQuality from String.
Get rhino context in a safe way as it needs to be initialized on the main thread.
https://www.imdb.com/title/tt2861424/ -> tt2861424
https://www.imdb.com/title/tt2861424/ -> tt2861424
Extension function of LoadResponse to check if it's Anime based.
Extension function of TvType to check if the type is Audio.
Extension function of LoadResponse to check if it's Episode based.
Extension function to determine if the TvType is episode-based. This function checks if the type corresponds to an episode-based format. Episode-based types will be placed in subfolders that include the sanitized title name. This check is used for other logic as well.
Extension function of TvType to check if the type is Live stream.
Extension function of TvType to check if the type is Movie.
Create MainPageData from url, name Strings & layout (Horizontal/Vertical) Boolean.
return list of MainPageData with url to name, make for more readable code
Runs all different functions at the same time and awaits for all to be finished, then returns a list of all those items or null if they fail. However Unit is often used.
Sort the urls based on quality