mirror of
https://github.com/Jacekun/cs3xxx-repo.git
synced 2024-08-14 23:57:09 +00:00
Removed example provider
This commit is contained in:
parent
37ce6e22b4
commit
05a661d59b
4 changed files with 0 additions and 60 deletions
|
@ -1,24 +0,0 @@
|
||||||
// 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
|
|
||||||
|
|
||||||
// List of video source types. Users are able to filter for extensions in a given category.
|
|
||||||
// You can find a list of avaliable types here:
|
|
||||||
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
|
||||||
tvTypes = listOf("Others")
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<manifest package="com.example"/>
|
|
|
@ -1,13 +0,0 @@
|
||||||
package com.example
|
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
|
|
||||||
import com.lagradost.cloudstream3.plugins.Plugin
|
|
||||||
import android.content.Context
|
|
||||||
|
|
||||||
@CloudstreamPlugin
|
|
||||||
class TestPlugin: Plugin() {
|
|
||||||
override fun load(context: Context) {
|
|
||||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
|
||||||
registerMainAPI(ExampleProvider())
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
package com.example
|
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.TvType
|
|
||||||
import com.lagradost.cloudstream3.MainAPI
|
|
||||||
import com.lagradost.cloudstream3.SearchResponse
|
|
||||||
|
|
||||||
class ExampleProvider : MainAPI() { // all providers must be an instance of MainAPI
|
|
||||||
override var mainUrl = "https://example.com/"
|
|
||||||
override var name = "Example provider"
|
|
||||||
override val supportedTypes = setOf(TvType.Movie)
|
|
||||||
|
|
||||||
override var lang = "en"
|
|
||||||
|
|
||||||
// enable this when your provider has a main page
|
|
||||||
override val hasMainPage = true
|
|
||||||
|
|
||||||
// this function gets called when you search for something
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
|
||||||
return listOf<SearchResponse>()
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue