mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix sourcename YugenAnime
This commit is contained in:
parent
d2c96d3867
commit
7314308294
2 changed files with 3 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue