Ported over all movie providers (some disabled)

This commit is contained in:
Blatzar 2022-08-10 01:00:08 +02:00
parent c0509c5db9
commit 5c5a8d142f
283 changed files with 17532 additions and 76 deletions

View file

@ -0,0 +1,25 @@
dependencies {
implementation(project(mapOf("path" to ":PelisplusProviderTemplate")))
}
// use an integer for version numbers
version = 1
cloudstream {
// All of these properties are optional, you can safely remove them
// description = "Lorem Ipsum"
// authors = listOf("Cloudburst")
/**
* Status int as the following:
* 0: Down
* 1: Ok
* 2: Slow
* 3: Beta only
* */
status = 1 // will be 3 if unspecified
// Set to true to get an 18+ symbol next to the plugin
adult = false // will be false if unspecified
}

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.lagradost"/>

View file

@ -0,0 +1,26 @@
package com.lagradost
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)
}

View file

@ -0,0 +1,14 @@
package com.lagradost
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
import com.lagradost.cloudstream3.plugins.Plugin
import android.content.Context
@CloudstreamPlugin
class PelisplusProviderPlugin: Plugin() {
override fun load(context: Context) {
// All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(PelisplusProvider())
}
}