Package com.lagradost.cloudstream3

Types

AcraApplication
Link copied to clipboard
class AcraApplication : Application
Actor
Link copied to clipboard
data class Actor(name: String, image: String?)
ActorData
Link copied to clipboard
data class ActorData(actor: Actor, role: ActorRole?, roleString: String?, voiceActor: Actor?)
ActorRole
Link copied to clipboard
enum ActorRole : Enum<ActorRole>
AnimeLoadResponse
Link copied to clipboard
data class AnimeLoadResponse(engName: String?, japName: String?, name: String, url: String, apiName: String, type: TvType, posterUrl: String?, year: Int?, episodes: MutableMap<DubStatus, List<Episode>>, showStatus: ShowStatus?, plot: String?, tags: List<String>?, synonyms: List<String>?, rating: Int?, duration: Int?, trailers: MutableList<TrailerData>, recommendations: List<SearchResponse>?, actors: List<ActorData>?, comingSoon: Boolean, syncData: MutableMap<String, String>, posterHeaders: Map<String, String>?, nextAiring: NextAiring?, seasonNames: List<SeasonData>?, backgroundPosterUrl: String?) : LoadResponse, EpisodeResponse
AnimeSearchResponse
Link copied to clipboard
data class AnimeSearchResponse(name: String, url: String, apiName: String, type: TvType?, posterUrl: String?, year: Int?, dubStatus: EnumSet<DubStatus>?, otherName: String?, episodes: MutableMap<DubStatus, Int>, id: Int?, quality: SearchQuality?, posterHeaders: Map<String, String>?) : SearchResponse
AniSearch
Link copied to clipboard
data class AniSearch(results: ArrayList<Results>?)
APIHolder
Link copied to clipboard
object APIHolder
CommonActivity
Link copied to clipboard
object CommonActivity
CustomReportSender
Link copied to clipboard
class CustomReportSender : ReportSender
CustomSenderFactory
Link copied to clipboard
@AutoService(value = [ReportSenderFactory::class])
class CustomSenderFactory : ReportSenderFactory
DownloaderTestImpl
Link copied to clipboard
class DownloaderTestImpl : Downloader
DubStatus
Link copied to clipboard
enum DubStatus : Enum<DubStatus>
Episode
Link copied to clipboard
data class Episode(data: String, name: String?, season: Int?, episode: Int?, posterUrl: String?, rating: Int?, description: String?, date: Long?)
EpisodeResponse
Link copied to clipboard
interface EpisodeResponse
ErrorLoadingException
Link copied to clipboard
class ErrorLoadingException(message: String?) : Exception
ExceptionHandler
Link copied to clipboard
class ExceptionHandler(errorFile: File, onError: () -> Unit) : Thread.UncaughtExceptionHandler
HomePageList
Link copied to clipboard
data class HomePageList(name: String, list: List<SearchResponse>, isHorizontalImages: Boolean)
HomePageResponse
Link copied to clipboard
data class HomePageResponse(items: List<HomePageList>, hasNext: Boolean)
LiveSearchResponse
Link copied to clipboard
data class LiveSearchResponse(name: String, url: String, apiName: String, type: TvType?, posterUrl: String?, id: Int?, quality: SearchQuality?, posterHeaders: Map<String, String>?, lang: String?) : SearchResponse
LiveStreamLoadResponse
Link copied to clipboard
data class LiveStreamLoadResponse(name: String, url: String, apiName: String, dataUrl: String, posterUrl: String?, year: Int?, plot: String?, type: TvType, rating: Int?, tags: List<String>?, duration: Int?, trailers: MutableList<TrailerData>, recommendations: List<SearchResponse>?, actors: List<ActorData>?, comingSoon: Boolean, syncData: MutableMap<String, String>, posterHeaders: Map<String, String>?, backgroundPosterUrl: String?) : LoadResponse
LoadResponse
Link copied to clipboard
interface LoadResponse
MainActivity
Link copied to clipboard
class MainActivity : AppCompatActivity, ColorPickerDialogListener
MainAPI
Link copied to clipboard
abstract class MainAPI
Every provider will not have try catch built in, so handle exceptions when calling these functions
MainPageData
Link copied to clipboard
data class MainPageData(name: String, data: String, horizontalImages: Boolean)
MainPageRequest
Link copied to clipboard
data class MainPageRequest(name: String, data: String, horizontalImages: Boolean)
MovieLoadResponse
Link copied to clipboard
data class MovieLoadResponse(name: String, url: String, apiName: String, type: TvType, dataUrl: String, posterUrl: String?, year: Int?, plot: String?, rating: Int?, tags: List<String>?, duration: Int?, trailers: MutableList<TrailerData>, recommendations: List<SearchResponse>?, actors: List<ActorData>?, comingSoon: Boolean, syncData: MutableMap<String, String>, posterHeaders: Map<String, String>?, backgroundPosterUrl: String?) : LoadResponse
MovieSearchResponse
Link copied to clipboard
data class MovieSearchResponse(name: String, url: String, apiName: String, type: TvType?, posterUrl: String?, year: Int?, id: Int?, quality: SearchQuality?, posterHeaders: Map<String, String>?) : SearchResponse
NextAiring
Link copied to clipboard
data class NextAiring(episode: Int, unixTime: Long)
ProvidersInfoJson
Link copied to clipboard
data class ProvidersInfoJson(name: String, url: String, credentials: String?, status: Int)
ProviderType
Link copied to clipboard
enum ProviderType : Enum<ProviderType>
ResultResume
Link copied to clipboard
open class ResultResume(packageString: String, action: String, position: String?, duration: String?, launcher: ActivityResultLauncher<Intent>?)
Results
Link copied to clipboard
data class Results(aniId: String?, malId: Int?, title: Title?, releaseDate: Int?, type: String?, image: String?, cover: String?)
SearchQuality
Link copied to clipboard
enum SearchQuality : Enum<SearchQuality>
SearchResponse
Link copied to clipboard
interface SearchResponse
SeasonData
Link copied to clipboard
data class SeasonData(season: Int, name: String?, displaySeason: Int?)
SettingsJson
Link copied to clipboard
data class SettingsJson(enableAdult: Boolean)
ShowStatus
Link copied to clipboard
enum ShowStatus : Enum<ShowStatus>
SubtitleFile
Link copied to clipboard
data class SubtitleFile(lang: String, url: String)
Title
Link copied to clipboard
data class Title(romaji: String?, english: String?)
TorrentLoadResponse
Link copied to clipboard
data class TorrentLoadResponse(name: String, url: String, apiName: String, magnet: String?, torrent: String?, plot: String?, type: TvType, posterUrl: String?, year: Int?, rating: Int?, tags: List<String>?, duration: Int?, trailers: MutableList<TrailerData>, recommendations: List<SearchResponse>?, actors: List<ActorData>?, comingSoon: Boolean, syncData: MutableMap<String, String>, posterHeaders: Map<String, String>?, backgroundPosterUrl: String?) : LoadResponse
TorrentSearchResponse
Link copied to clipboard
data class TorrentSearchResponse(name: String, url: String, apiName: String, type: TvType?, posterUrl: String?, id: Int?, quality: SearchQuality?, posterHeaders: Map<String, String>?) : SearchResponse
Tracker
Link copied to clipboard
data class Tracker(malId: Int?, aniId: String?, image: String?, cover: String?)
TrackerType
Link copied to clipboard
enum TrackerType : Enum<TrackerType>
used for the getTracker() method
TrailerData
Link copied to clipboard
data class TrailerData(extractorUrl: String, referer: String?, raw: Boolean)
TvSeriesLoadResponse
Link copied to clipboard
data class TvSeriesLoadResponse(name: String, url: String, apiName: String, type: TvType, episodes: List<Episode>, posterUrl: String?, year: Int?, plot: String?, showStatus: ShowStatus?, rating: Int?, tags: List<String>?, duration: Int?, trailers: MutableList<TrailerData>, recommendations: List<SearchResponse>?, actors: List<ActorData>?, comingSoon: Boolean, syncData: MutableMap<String, String>, posterHeaders: Map<String, String>?, nextAiring: NextAiring?, seasonNames: List<SeasonData>?, backgroundPosterUrl: String?) : LoadResponse, EpisodeResponse
TvSeriesSearchResponse
Link copied to clipboard
data class TvSeriesSearchResponse(name: String, url: String, apiName: String, type: TvType?, posterUrl: String?, year: Int?, episodes: Int?, id: Int?, quality: SearchQuality?, posterHeaders: Map<String, String>?) : SearchResponse
TvType
Link copied to clipboard
enum TvType : Enum<TvType>
VPNStatus
Link copied to clipboard
enum VPNStatus : Enum<VPNStatus>

Functions

addDate
Link copied to clipboard
fun Episode.addDate(date: Date?)
fun Episode.addDate(date: String?, format: String = "yyyy-MM-dd")
addDub
Link copied to clipboard
fun AnimeSearchResponse.addDub(episodes: Int?)
addDubStatus
Link copied to clipboard
fun AnimeSearchResponse.addDubStatus(status: DubStatus, episodes: Int? = null)
fun AnimeSearchResponse.addDubStatus(isDub: Boolean, episodes: Int? = null)
fun AnimeSearchResponse.addDubStatus(status: String, episodes: Int? = null)
fun AnimeSearchResponse.addDubStatus(dubExist: Boolean, subExist: Boolean, dubEpisodes: Int? = null, subEpisodes: Int? = null)
addEpisodes
Link copied to clipboard
fun AnimeLoadResponse.addEpisodes(status: DubStatus, episodes: List<Episode>?)
If episodes already exist appends the list.
addPoster
Link copied to clipboard
fun LoadResponse.addPoster(url: String?, headers: Map<String, String>? = null)
fun SearchResponse.addPoster(url: String?, headers: Map<String, String>? = null)
addQuality
Link copied to clipboard
fun SearchResponse.addQuality(quality: String)
addSeasonNames
Link copied to clipboard
@JvmName(name = addSeasonNamesSeasonData)
fun EpisodeResponse.addSeasonNames(names: List<SeasonData>)
@JvmName(name = addSeasonNamesString)
fun EpisodeResponse.addSeasonNames(names: List<String>)
addSub
Link copied to clipboard
fun AnimeSearchResponse.addSub(episodes: Int?)
amap
Link copied to clipboard
suspend fun <A, B> List<A>.amap(f: suspend (A) -> B): List<B>
suspend fun <K, V, R> Map<out K, V>.amap(f: suspend (Map.Entry<K, V>) -> R): List<R>
amapIndexed
Link copied to clipboard
suspend fun <A, B> List<A>.amapIndexed(f: suspend (index: Int, A) -> B): List<B>
apmap
Link copied to clipboard
fun <A, B> List<A>.apmap(f: suspend (A) -> B): List<B>
fun <K, V, R> Map<out K, V>.apmap(f: suspend (Map.Entry<K, V>) -> R): List<R>
apmapIndexed
Link copied to clipboard
fun <A, B> List<A>.apmapIndexed(f: suspend (index: Int, A) -> B): List<B>
argamap
Link copied to clipboard
fun <R> argamap(vararg transforms: suspend () -> R): <ERROR CLASS>
base64Decode
Link copied to clipboard
fun base64Decode(string: String): String
Might need a different implementation for desktop
base64DecodeArray
Link copied to clipboard
fun base64DecodeArray(string: String): ByteArray
base64Encode
Link copied to clipboard
fun base64Encode(array: ByteArray): String
capitalizeString
Link copied to clipboard
fun capitalizeString(str: String): String
capitalizeStringNullable
Link copied to clipboard
fun capitalizeStringNullable(str: String?): String?
fetchUrls
Link copied to clipboard
fun fetchUrls(text: String?): List<String>
fixTitle
Link copied to clipboard
fun fixTitle(str: String): String
fixUrl
Link copied to clipboard
fun MainAPI.fixUrl(url: String): String
fixUrlNull
Link copied to clipboard
fun MainAPI.fixUrlNull(url: String?): String?
getDurationFromString
Link copied to clipboard
fun getDurationFromString(input: String?): Int?
getQualityFromString
Link copied to clipboard
fun getQualityFromString(string: String?): SearchQuality?
Add anything to here if you find a site that uses some specific naming convention
getRhinoContext
Link copied to clipboard
suspend fun getRhinoContext(): Context
Get rhino context in a safe way as it needs to be initialized on the main thread.
imdbUrlToId
Link copied to clipboard
fun imdbUrlToId(url: String): String?
https://www.imdb.
imdbUrlToIdNullable
Link copied to clipboard
fun imdbUrlToIdNullable(url: String?): String?
isAnimeBased
Link copied to clipboard
fun LoadResponse?.isAnimeBased(): Boolean
isAnimeOp
Link copied to clipboard
fun TvType.isAnimeOp(): Boolean
isEpisodeBased
Link copied to clipboard
fun LoadResponse?.isEpisodeBased(): Boolean
fun TvType?.isEpisodeBased(): Boolean
isLiveStream
Link copied to clipboard
fun TvType.isLiveStream(): Boolean
isMovieType
Link copied to clipboard
fun TvType.isMovieType(): Boolean
mainPage
Link copied to clipboard
fun mainPage(url: String, name: String, horizontalImages: Boolean = false): MainPageData
mainPageOf
Link copied to clipboard
fun mainPageOf(vararg elements: MainPageData): List<MainPageData>
fun mainPageOf(vararg elements: Pair<String, String>): List<MainPageData>
return list of MainPageData with url to name, make for more readable code
newAnimeLoadResponse
Link copied to clipboard
suspend fun MainAPI.newAnimeLoadResponse(name: String, url: String, type: TvType, comingSoonIfNone: Boolean = true, initializer: suspend AnimeLoadResponse.() -> Unit = { }): AnimeLoadResponse
newAnimeSearchResponse
Link copied to clipboard
fun MainAPI.newAnimeSearchResponse(name: String, url: String, type: TvType = TvType.Anime, fix: Boolean = true, initializer: AnimeSearchResponse.() -> Unit = { }): AnimeSearchResponse
newEpisode
Link copied to clipboard
fun <T> MainAPI.newEpisode(data: T, initializer: Episode.() -> Unit = { }): Episode
fun MainAPI.newEpisode(url: String, initializer: Episode.() -> Unit = { }, fix: Boolean = true): Episode
newHomePageResponse
Link copied to clipboard
fun newHomePageResponse(list: HomePageList, hasNext: Boolean? = null): HomePageResponse
fun newHomePageResponse(list: List<HomePageList>, hasNext: Boolean? = null): HomePageResponse
fun newHomePageResponse(data: MainPageRequest, list: List<SearchResponse>, hasNext: Boolean? = null): HomePageResponse
fun newHomePageResponse(name: String, list: List<SearchResponse>, hasNext: Boolean? = null): HomePageResponse
newMovieLoadResponse
Link copied to clipboard
suspend fun <T> MainAPI.newMovieLoadResponse(name: String, url: String, type: TvType, data: T?, initializer: suspend MovieLoadResponse.() -> Unit = { }): MovieLoadResponse
suspend fun MainAPI.newMovieLoadResponse(name: String, url: String, type: TvType, dataUrl: String, initializer: suspend MovieLoadResponse.() -> Unit = { }): MovieLoadResponse
newMovieSearchResponse
Link copied to clipboard
fun MainAPI.newMovieSearchResponse(name: String, url: String, type: TvType = TvType.Movie, fix: Boolean = true, initializer: MovieSearchResponse.() -> Unit = { }): MovieSearchResponse
newTvSeriesLoadResponse
Link copied to clipboard
suspend fun MainAPI.newTvSeriesLoadResponse(name: String, url: String, type: TvType, episodes: List<Episode>, initializer: suspend TvSeriesLoadResponse.() -> Unit = { }): TvSeriesLoadResponse
newTvSeriesSearchResponse
Link copied to clipboard
fun MainAPI.newTvSeriesSearchResponse(name: String, url: String, type: TvType = TvType.TvSeries, fix: Boolean = true, initializer: TvSeriesSearchResponse.() -> Unit = { }): TvSeriesSearchResponse
setHeaderDecoration
Link copied to clipboard
fun setHeaderDecoration(view: RecyclerView, @LayoutRes() headerViewRes: Int)
sortSubs
Link copied to clipboard
fun sortSubs(subs: Set<SubtitleData>): List<SubtitleData>
sortUrls
Link copied to clipboard
fun sortUrls(urls: Set<ExtractorLink>): List<ExtractorLink>
toRatingInt
Link copied to clipboard
fun String?.toRatingInt(): Int?

Properties

AllLanguagesName
Link copied to clipboard
const val AllLanguagesName: String
Defines the constant for the all languages preference, if this is set then it is the equivalent of all languages being set
app
Link copied to clipboard
var app: <ERROR CLASS>
mapper
Link copied to clipboard
val mapper: JsonMapper
MPV
Link copied to clipboard
val MPV: ResultResume
MPV_COMPONENT
Link copied to clipboard
val MPV_COMPONENT: ComponentName
MPV_PACKAGE
Link copied to clipboard
const val MPV_PACKAGE: String
PROVIDER_STATUS_BETA_ONLY
Link copied to clipboard
const val PROVIDER_STATUS_BETA_ONLY: Int = 3
PROVIDER_STATUS_DOWN
Link copied to clipboard
const val PROVIDER_STATUS_DOWN: Int = 0
PROVIDER_STATUS_KEY
Link copied to clipboard
const val PROVIDER_STATUS_KEY: String
PROVIDER_STATUS_OK
Link copied to clipboard
const val PROVIDER_STATUS_OK: Int = 1
PROVIDER_STATUS_SLOW
Link copied to clipboard
const val PROVIDER_STATUS_SLOW: Int = 2
resumeApps
Link copied to clipboard
val resumeApps: Array<ResultResume>
USER_AGENT
Link copied to clipboard
const val USER_AGENT: String
VLC
Link copied to clipboard
val VLC: ResultResume
VLC_COMPONENT
Link copied to clipboard
val VLC_COMPONENT: ComponentName
VLC_PACKAGE
Link copied to clipboard
const val VLC_PACKAGE: String
WEB_VIDEO
Link copied to clipboard
val WEB_VIDEO: ResultResume
WEB_VIDEO_CAST_PACKAGE
Link copied to clipboard
const val WEB_VIDEO_CAST_PACKAGE: String