2021-12-27 17:41:55 +00:00
|
|
|
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.
|
2022-03-16 15:29:11 +00:00
|
|
|
override var mainUrl = "https://pelisplus.icu"
|
2021-12-27 17:41:55 +00:00
|
|
|
|
|
|
|
// name is for how the provider will be named which is visible in the UI, no real rules for this.
|
2022-03-16 15:29:11 +00:00
|
|
|
override var name = "Pelisplus"
|
2021-12-27 17:41:55 +00:00
|
|
|
|
2022-01-14 18:14:24 +00:00
|
|
|
override val homePageUrlList = listOf(
|
2021-12-27 17:41:55 +00:00
|
|
|
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.
|
2022-01-14 18:14:24 +00:00
|
|
|
override val supportedTypes = setOf(TvType.TvSeries, TvType.Movie)
|
2021-12-27 17:41:55 +00:00
|
|
|
}
|