mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix type
This commit is contained in:
parent
638414730d
commit
ba1fbac2a2
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 9
|
version = 10
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -27,9 +27,9 @@ class KuramanimeProvider : MainAPI() {
|
||||||
)
|
)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun getType(t: String): TvType {
|
fun getType(t: String, s: Int): TvType {
|
||||||
return if (t.contains("OVA", true) || t.contains("Special")) TvType.OVA
|
return if (t.contains("OVA", true) || t.contains("Special")) TvType.OVA
|
||||||
else if (t.contains("Movie", true)) TvType.AnimeMovie
|
else if (t.contains("Movie", true) && s == 1) TvType.AnimeMovie
|
||||||
else TvType.Anime
|
else TvType.Anime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ class KuramanimeProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return newAnimeLoadResponse(title, url, getType(type)) {
|
return newAnimeLoadResponse(title, url, getType(type, episodes.size)) {
|
||||||
engName = title
|
engName = title
|
||||||
posterUrl = image ?: poster
|
posterUrl = image ?: poster
|
||||||
backgroundPosterUrl = cover ?: image ?: poster
|
backgroundPosterUrl = cover ?: image ?: poster
|
||||||
|
|
Loading…
Reference in a new issue