This commit is contained in:
parent
d07a0c89f1
commit
c76043df24
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 4
|
version = 5
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
|
import android.util.Log
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||||
|
@ -33,13 +34,17 @@ class UakinoProvider : MainAPI() {
|
||||||
"$mainUrl/cartoon/cartoonseries/page/" to "Мультсеріали",
|
"$mainUrl/cartoon/cartoonseries/page/" to "Мультсеріали",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val blackUrls = "(/news/)|(/franchise/)"
|
||||||
|
|
||||||
override suspend fun getMainPage(
|
override suspend fun getMainPage(
|
||||||
page: Int,
|
page: Int,
|
||||||
request: MainPageRequest
|
request: MainPageRequest
|
||||||
): HomePageResponse {
|
): HomePageResponse {
|
||||||
val document = app.get(request.data + page).document
|
val document = app.get(request.data + page).document
|
||||||
val home = document.select("div.owl-item, div.movie-item").map {
|
val home = document.select("div.owl-item, div.movie-item")
|
||||||
it.toSearchResponse()
|
.filterNot { el -> el.select("a.movie-title, a.full-movie").attr("href").contains(blackUrls) }
|
||||||
|
.map {
|
||||||
|
it.toSearchResponse()
|
||||||
}
|
}
|
||||||
return newHomePageResponse(request.name, home)
|
return newHomePageResponse(request.name, home)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue