diff --git a/StremioX/build.gradle.kts b/StremioX/build.gradle.kts index ae47ca51..d246859a 100644 --- a/StremioX/build.gradle.kts +++ b/StremioX/build.gradle.kts @@ -1,12 +1,12 @@ // use an integer for version numbers -version = 2 +version = 3 cloudstream { language = "en" // All of these properties are optional, you can safely remove them - description = "- Stremiox allows you to use stream addons \n- Stremio allows you to use catalog addons \n Requires Setup" + description = "- StremioX allows you to use stream addons \n- StremioC allows you to use catalog addons \n Requires Setup" authors = listOf("Hexated") /** diff --git a/StremioX/src/main/kotlin/com/hexated/Stremio.kt b/StremioX/src/main/kotlin/com/hexated/StremioC.kt similarity index 95% rename from StremioX/src/main/kotlin/com/hexated/Stremio.kt rename to StremioX/src/main/kotlin/com/hexated/StremioC.kt index ce2a85e5..01c640a3 100644 --- a/StremioX/src/main/kotlin/com/hexated/Stremio.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioC.kt @@ -13,9 +13,9 @@ import java.net.URI private const val TRACKER_LIST_URL = "https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt" -class Stremio : MainAPI() { +class StremioC : MainAPI() { override var mainUrl = "https://stremio.github.io/stremio-static-addon-example" - override var name = "Stremio" + override var name = "StremioC" override val supportedTypes = setOf(TvType.Others) override val hasMainPage = true private val cinemataUrl = "https://v3-cinemeta.strem.io" @@ -83,7 +83,7 @@ class Stremio : MainAPI() { if (type != null) types.add(type) } - suspend fun search(query: String, provider: Stremio): List { + suspend fun search(query: String, provider: StremioC): List { val entries = mutableListOf() types.forEach { type -> val json = @@ -98,7 +98,7 @@ class Stremio : MainAPI() { return entries } - suspend fun toHomePageList(provider: Stremio): HomePageList? { + suspend fun toHomePageList(provider: StremioC): HomePageList? { val entries = mutableListOf() types.forEach { type -> val json = app.get("${provider.mainUrl}/catalog/${type}/${id}.json").text @@ -127,7 +127,7 @@ class Stremio : MainAPI() { val type: String?, val videos: List