21 lines
689 B
Kotlin
21 lines
689 B
Kotlin
|
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>()
|
||
|
}
|
||
|
}
|