cloudstream/app/src/main/java/com/lagradost/cloudstream3/movieproviders/PelisplusProvider.kt
2022-03-16 16:29:11 +01:00

26 lines
885 B
Kotlin

package com.lagradost.cloudstream3.movieproviders
import com.lagradost.cloudstream3.TvType
/** Needs to inherit from MainAPI() to
* make the app know what functions to call
*/
class PelisplusProvider : PelisplusProviderTemplate() {
// mainUrl is good to have as a holder for the url to make future changes easier.
override var mainUrl = "https://pelisplus.icu"
// name is for how the provider will be named which is visible in the UI, no real rules for this.
override var name = "Pelisplus"
override val homePageUrlList = listOf(
mainUrl,
"$mainUrl/movies",
"$mainUrl/series",
"$mainUrl/new-season",
"$mainUrl/popular"
)
// This is just extra metadata about what type of movies the provider has.
// Needed for search functionality.
override val supportedTypes = setOf(TvType.TvSeries, TvType.Movie)
}