Update YugenAnime.kt

Updated the mainurl (it's .sx now) and search function (/discover instead of /search)
This commit is contained in:
Saksham Kushwaha 2023-12-23 16:22:09 +05:30 committed by GitHub
parent 8ab71d47e5
commit 33872bfc5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import org.jsoup.nodes.Element
import java.net.URI
class YugenAnime : MainAPI() {
override var mainUrl = "https://yugenanime.tv"
override var mainUrl = "https://yugenanime.sx/"
override var name = "YugenAnime"
override val hasMainPage = true
override var lang = "en"
@ -84,7 +84,7 @@ class YugenAnime : MainAPI() {
}
override suspend fun search(query: String): List<SearchResponse> {
val document = app.get("$mainUrl/search/?q=$query").document
val document = app.get("$mainUrl/discover/?q=$query").document
return document.select("div.cards-grid a.anime-meta").mapNotNull {
it.toSearchResult()
}
@ -231,4 +231,4 @@ class YugenAnime : MainAPI() {
@JsonProperty("season") val season: String? = null,
)
}
}