small fix

This commit is contained in:
hexated 2023-01-03 06:21:34 +07:00
parent 502b053950
commit 1419a2a298

View file

@ -56,7 +56,7 @@ class YugenAnime : MainAPI() {
val home = document.select("div.cards-grid a, ul.ep-grid li.ep-card").mapNotNull { val home = document.select("div.cards-grid a, ul.ep-grid li.ep-card").mapNotNull {
it.toSearchResult() it.toSearchResult()
} }
items.add(HomePageList(request.name, home, request.name == "Recently Released")) items.add(HomePageList(request.name, home))
return newHomePageResponse(items) return newHomePageResponse(items)
} }
@ -171,6 +171,7 @@ class YugenAnime : MainAPI() {
return when { return when {
url.contains("vrv", true) -> "Vrv" url.contains("vrv", true) -> "Vrv"
url.contains("gofcdn", true) -> "Gofcdn" url.contains("gofcdn", true) -> "Gofcdn"
url.contains("cache", true) -> "Cache"
else -> this.name else -> this.name
} }
} }