This commit is contained in:
hexated 2023-04-04 07:44:24 +07:00
parent 638414730d
commit ba1fbac2a2
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -27,9 +27,9 @@ class KuramanimeProvider : MainAPI() {
)
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
else if (t.contains("Movie", true)) TvType.AnimeMovie
else if (t.contains("Movie", true) && s == 1) TvType.AnimeMovie
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
posterUrl = image ?: poster
backgroundPosterUrl = cover ?: image ?: poster