add tv types

This commit is contained in:
Cloudburst 2022-08-14 14:50:52 +02:00 committed by GitHub
parent 2aeef21707
commit 3f52802264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -44,6 +44,7 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) {
var adult = false var adult = false
var status = 3 var status = 3
var language: String? = null var language: String? = null
var tvTypes: List<String>? = null
var iconUrl: String? = null var iconUrl: String? = null
} }

View file

@ -47,6 +47,7 @@ fun Project.makePluginEntry(): PluginEntry {
adult = extension.adult, adult = extension.adult,
language = extension.language, language = extension.language,
iconUrl = extension.iconUrl, iconUrl = extension.iconUrl,
apiVersion = extension.apiVersion apiVersion = extension.apiVersion,
tvTypes = extension.tvTypes
) )
} }

View file

@ -11,6 +11,7 @@ data class PluginEntry(
val repositoryUrl: String?, val repositoryUrl: String?,
val adult: Boolean, val adult: Boolean,
val language: String?, val language: String?,
val tvTypes: List<String>?,
val iconUrl: String?, val iconUrl: String?,
val apiVersion: Int val apiVersion: Int
) )