mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Update YugenAnime.kt (#462)
* Update YugenAnime.kt Updated the mainurl (it's .sx now) and search function (/discover instead of /search) * Update YugenAnime.kt
This commit is contained in:
parent
9d9580b050
commit
d3bd6f1609
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ import org.jsoup.nodes.Element
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
|
||||||
class YugenAnime : MainAPI() {
|
class YugenAnime : MainAPI() {
|
||||||
override var mainUrl = "https://yugenanime.tv"
|
override var mainUrl = "https://yugenanime.sx"
|
||||||
override var name = "YugenAnime"
|
override var name = "YugenAnime"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "en"
|
override var lang = "en"
|
||||||
|
@ -84,7 +84,7 @@ class YugenAnime : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
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 {
|
return document.select("div.cards-grid a.anime-meta").mapNotNull {
|
||||||
it.toSearchResult()
|
it.toSearchResult()
|
||||||
}
|
}
|
||||||
|
@ -231,4 +231,4 @@ class YugenAnime : MainAPI() {
|
||||||
@JsonProperty("season") val season: String? = null,
|
@JsonProperty("season") val season: String? = null,
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue