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
version = 2
version = 3
cloudstream {

View File

@ -175,10 +175,9 @@ class YugenAnime : MainAPI() {
private fun getSourceType(url: String): String {
return when {
url.contains("vrv", true) -> "Vrv"
url.contains("gofcdn", true) -> "Gofcdn"
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
}
}