uaserial: Added .club
This commit is contained in:
parent
14f7218c5b
commit
eef2c62dcc
3 changed files with 9 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 4
|
version = 5
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.google.code.gson:gson:2.9.0")
|
implementation("com.google.code.gson:gson:2.9.0")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
|
import android.util.Log
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||||
|
@ -9,11 +10,11 @@ import com.lagradost.models.GeneralInfo
|
||||||
import com.lagradost.models.GeneralInfoMovie
|
import com.lagradost.models.GeneralInfoMovie
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class UASerialProvider : MainAPI() {
|
open class UASerialProvider(url: String, name: String) : MainAPI() {
|
||||||
|
|
||||||
// Basic Info
|
// Basic Info
|
||||||
override var mainUrl = "https://uaserial.tv"
|
override var mainUrl = url
|
||||||
override var name = "UASerial"
|
override var name = name
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "uk"
|
override var lang = "uk"
|
||||||
override val hasDownloadSupport = true
|
override val hasDownloadSupport = true
|
||||||
|
@ -33,6 +34,7 @@ class UASerialProvider : MainAPI() {
|
||||||
page: Int,
|
page: Int,
|
||||||
request: MainPageRequest
|
request: MainPageRequest
|
||||||
): HomePageResponse {
|
): HomePageResponse {
|
||||||
|
Log.d("CakesTwix-Debug", request.data)
|
||||||
val document = app.get(request.data.format(page)).document
|
val document = app.get(request.data.format(page)).document
|
||||||
|
|
||||||
val home = document.select(".row .col").map {
|
val home = document.select(".row .col").map {
|
||||||
|
@ -187,5 +189,4 @@ class UASerialProvider : MainAPI() {
|
||||||
// selecto__dropdown-item
|
// selecto__dropdown-item
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import android.content.Context
|
||||||
class UASerialProviderPlugin: Plugin() {
|
class UASerialProviderPlugin: Plugin() {
|
||||||
override fun load(context: Context) {
|
override fun load(context: Context) {
|
||||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
// 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"))
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue