From 3f52802264728729f573cf24ff36928830438b7b Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Sun, 14 Aug 2022 14:50:52 +0200 Subject: [PATCH] add tv types --- .../com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt | 1 + src/main/kotlin/com/lagradost/cloudstream3/gradle/Utils.kt | 3 ++- .../com/lagradost/cloudstream3/gradle/entities/PluginEntry.kt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt b/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt index 1440284..577f926 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/CloudstreamExtension.kt @@ -44,6 +44,7 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) { var adult = false var status = 3 var language: String? = null + var tvTypes: List? = null var iconUrl: String? = null } diff --git a/src/main/kotlin/com/lagradost/cloudstream3/gradle/Utils.kt b/src/main/kotlin/com/lagradost/cloudstream3/gradle/Utils.kt index 6310edf..7743646 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/Utils.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/Utils.kt @@ -47,6 +47,7 @@ fun Project.makePluginEntry(): PluginEntry { adult = extension.adult, language = extension.language, iconUrl = extension.iconUrl, - apiVersion = extension.apiVersion + apiVersion = extension.apiVersion, + tvTypes = extension.tvTypes ) } \ No newline at end of file diff --git a/src/main/kotlin/com/lagradost/cloudstream3/gradle/entities/PluginEntry.kt b/src/main/kotlin/com/lagradost/cloudstream3/gradle/entities/PluginEntry.kt index 1b20342..7538203 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/entities/PluginEntry.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/entities/PluginEntry.kt @@ -11,6 +11,7 @@ data class PluginEntry( val repositoryUrl: String?, val adult: Boolean, val language: String?, + val tvTypes: List?, val iconUrl: String?, val apiVersion: Int ) \ No newline at end of file