mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update MainAPI.kt
This commit is contained in:
parent
250b61c517
commit
39bc4f411d
1 changed files with 12 additions and 0 deletions
|
@ -801,6 +801,18 @@ enum class TvType(value: Int?) {
|
|||
Others(12)
|
||||
}
|
||||
|
||||
public enum class AutoDownloadMode(val value: Int) {
|
||||
Disable(0),
|
||||
FilterByLang(1),
|
||||
All(2),
|
||||
NsfwOnly(3)
|
||||
;
|
||||
|
||||
companion object {
|
||||
infix fun getEnum(value: Int): AutoDownloadMode? = AutoDownloadMode.values().firstOrNull { it.value == value }
|
||||
}
|
||||
}
|
||||
|
||||
// IN CASE OF FUTURE ANIME MOVIE OR SMTH
|
||||
fun TvType.isMovieType(): Boolean {
|
||||
return this == TvType.Movie || this == TvType.AnimeMovie || this == TvType.Torrent || this == TvType.Live
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue