fix sourcename YugenAnime

This commit is contained in:
hexated 2023-01-08 18:33:40 +07:00
parent d2c96d3867
commit 7314308294
2 changed files with 3 additions and 4 deletions

View file

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

View file

@ -175,10 +175,9 @@ class YugenAnime : MainAPI() {
private fun getSourceType(url: String): String { private fun getSourceType(url: String): String {
return when { return when {
url.contains("vrv", true) -> "Vrv"
url.contains("gofcdn", true) -> "Gofcdn"
url.contains("cache", true) -> "Cache" url.contains("cache", true) -> "Cache"
else -> this.name url.contains("allanime", true) -> "Crunchyroll-AL"
else -> Regex("\\.(\\S+)\\.").find(url)?.groupValues?.getOrNull(1)?.let { fixTitle(it) } ?: this.name
} }
} }