2021-09-25 10:07:40 +00:00
|
|
|
package com.lagradost.cloudstream3.movieproviders
|
|
|
|
|
2021-10-19 20:17:06 +00:00
|
|
|
import com.lagradost.cloudstream3.TvType
|
2021-09-25 10:07:40 +00:00
|
|
|
|
2021-09-29 20:03:58 +00:00
|
|
|
/** Needs to inherit from MainAPI() to
|
|
|
|
* make the app know what functions to call
|
|
|
|
*/
|
2021-10-03 20:23:06 +00:00
|
|
|
class VidEmbedProvider : VidstreamProviderTemplate() {
|
2021-09-29 20:03:58 +00:00
|
|
|
// 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://vidembed.cc"
|
2021-09-29 20:03:58 +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 = "VidEmbed"
|
2021-09-29 20:03:58 +00:00
|
|
|
|
2021-10-03 20:23:06 +00:00
|
|
|
override val homePageUrlList: List<String> = listOf(
|
|
|
|
mainUrl,
|
|
|
|
"$mainUrl/movies",
|
|
|
|
"$mainUrl/series",
|
|
|
|
"$mainUrl/recommended-series",
|
|
|
|
"$mainUrl/cinema-movies"
|
|
|
|
)
|
2021-09-25 10:07:40 +00:00
|
|
|
|
2022-03-29 18:34:34 +00:00
|
|
|
override val iv = "9225679083961858".toByteArray()
|
|
|
|
override val secretKey = "25742532592138496744665879883281".toByteArray()
|
|
|
|
|
2021-09-29 20:03:58 +00:00
|
|
|
// This is just extra metadata about what type of movies the provider has.
|
|
|
|
// Needed for search functionality.
|
2021-12-08 23:39:30 +00:00
|
|
|
override val supportedTypes = setOf(TvType.TvSeries, TvType.Movie)
|
2021-09-29 20:03:58 +00:00
|
|
|
}
|