CakesTwix 2023-09-09 16:01:36 +03:00
parent d07a0c89f1
commit c76043df24
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 4 version = 5
cloudstream { cloudstream {

View file

@ -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)
} }