mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Fixed kuronime type
This commit is contained in:
parent
bbf2e244e1
commit
8e37b0081e
1 changed files with 3 additions and 3 deletions
|
@ -30,8 +30,8 @@ class KuronimeProvider : MainAPI() {
|
|||
private const val jikanAPI = "https://api.jikan.moe/v4"
|
||||
|
||||
fun getType(t: String): TvType {
|
||||
return if (t.contains("OVA") || t.contains("Special")) TvType.OVA
|
||||
else if (t.contains("Movie")) TvType.AnimeMovie
|
||||
return if (t.contains("OVA", true) || t.contains("Special", true)) TvType.OVA
|
||||
else if (t.contains("Movie", true)) TvType.AnimeMovie
|
||||
else TvType.Anime
|
||||
}
|
||||
|
||||
|
@ -226,4 +226,4 @@ class KuronimeProvider : MainAPI() {
|
|||
@JsonProperty("data") val data: MediaAni? = null,
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue