From eef2c62dcc700b4a0d4d58c1f2a28d5c171ca858 Mon Sep 17 00:00:00 2001 From: CakesTwix Date: Sat, 17 Feb 2024 13:28:39 +0200 Subject: [PATCH] uaserial: Added .club --- UASerialProvider/build.gradle.kts | 2 +- .../src/main/kotlin/com/lagradost/UASerialProvider.kt | 11 ++++++----- .../kotlin/com/lagradost/UASerialProviderPlugin.kt | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/UASerialProvider/build.gradle.kts b/UASerialProvider/build.gradle.kts index ac04ad6..2d4fd07 100644 --- a/UASerialProvider/build.gradle.kts +++ b/UASerialProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 4 +version = 5 dependencies { implementation("com.google.code.gson:gson:2.9.0") diff --git a/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProvider.kt b/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProvider.kt index 0d9cb60..e2e1995 100644 --- a/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProvider.kt +++ b/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProvider.kt @@ -1,5 +1,6 @@ package com.lagradost +import android.util.Log import com.google.gson.Gson import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.LoadResponse.Companion.addActors @@ -9,11 +10,11 @@ import com.lagradost.models.GeneralInfo import com.lagradost.models.GeneralInfoMovie import org.jsoup.nodes.Element -class UASerialProvider : MainAPI() { +open class UASerialProvider(url: String, name: String) : MainAPI() { // Basic Info - override var mainUrl = "https://uaserial.tv" - override var name = "UASerial" + override var mainUrl = url + override var name = name override val hasMainPage = true override var lang = "uk" override val hasDownloadSupport = true @@ -33,6 +34,7 @@ class UASerialProvider : MainAPI() { page: Int, request: MainPageRequest ): HomePageResponse { + Log.d("CakesTwix-Debug", request.data) val document = app.get(request.data.format(page)).document val home = document.select(".row .col").map { @@ -187,5 +189,4 @@ class UASerialProvider : MainAPI() { // selecto__dropdown-item return true } - -} \ No newline at end of file +} diff --git a/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProviderPlugin.kt b/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProviderPlugin.kt index 1bfe419..fba4529 100644 --- a/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProviderPlugin.kt +++ b/UASerialProvider/src/main/kotlin/com/lagradost/UASerialProviderPlugin.kt @@ -8,6 +8,7 @@ import android.content.Context class UASerialProviderPlugin: Plugin() { override fun load(context: Context) { // All providers should be added in this manner. Please don't edit the providers list directly. - registerMainAPI(UASerialProvider()) + registerMainAPI(UASerialProvider("https://uaserial.tv", "UASerial")) + registerMainAPI(UASerialProvider("https://uaserial.club", "UASerial.club")) } } \ No newline at end of file