diff --git a/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt b/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt index 0076d193..13b26e72 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt @@ -268,12 +268,14 @@ object APIHolder { } else { // Filter API depending on preferred media type val listEnumAnime = listOf(TvType.Anime, TvType.AnimeMovie, TvType.OVA) - val listEnumMovieTv = listOf(TvType.Movie, TvType.TvSeries, TvType.Cartoon) - val mediaTypeList = if (currentPrefMedia == 1) listEnumMovieTv else listEnumAnime - - val filteredAPI = - allApis.filter { api -> api.supportedTypes.any { it in mediaTypeList } } - filteredAPI + val listEnumMovieTv = listOf(TvType.Movie, TvType.TvSeries, TvType.Cartoon, TvType.AsianDrama) + val listEnumDoc = listOf(TvType.Documentary) + val mediaTypeList = when (currentPrefMedia) { + 2 -> listEnumAnime + 3 -> listEnumDoc + else -> listEnumMovieTv + } + allApis.filter { api -> api.supportedTypes.any { it in mediaTypeList } } } } } diff --git a/app/src/main/res/values/array.xml b/app/src/main/res/values/array.xml index f3e585d4..b3d83f47 100644 --- a/app/src/main/res/values/array.xml +++ b/app/src/main/res/values/array.xml @@ -50,11 +50,13 @@ All Movies and TV Anime + Documentary 0 1 2 + 3