Skip to content

Commit

Permalink
Update YugenAnime.kt (#462)
Browse files Browse the repository at this point in the history
* Update YugenAnime.kt

Updated the mainurl (it's .sx now) and search function (/discover instead of /search)

* Update YugenAnime.kt
  • Loading branch information
lirena00 authored Dec 24, 2023
1 parent 9d9580b commit d3bd6f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions YugenAnime/src/main/kotlin/com/hexated/YugenAnime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -231,4 +231,4 @@ class YugenAnime : MainAPI() {
@JsonProperty("season") val season: String? = null,
)

}
}

0 comments on commit d3bd6f1

Please sign in to comment.