File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
domain/home/src/main/kotlin/com/flixclusive/domain/home Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import com.flixclusive.data.watch_history.WatchHistoryRepository
9
9
import com.flixclusive.domain.category.CategoryItemsProviderUseCase
10
10
import com.flixclusive.domain.provider.SourceLinksProviderUseCase
11
11
import com.flixclusive.domain.tmdb.FilmProviderUseCase
12
+ import com.flixclusive.model.provider.ProviderCatalog
12
13
import com.flixclusive.model.tmdb.Film
13
14
import com.flixclusive.model.tmdb.FilmSearchItem
14
15
import com.flixclusive.model.tmdb.Movie
@@ -183,6 +184,11 @@ class HomeItemsProviderUseCase @Inject constructor(
183
184
val randomIndex = Random .nextInt(_categories .value.size)
184
185
val category = _categories .value[randomIndex]
185
186
187
+ if (category is ProviderCatalog ) {
188
+ traversedCategories[randomIndex] = category
189
+ continue
190
+ }
191
+
186
192
if (! traversedCategories.containsKey(randomIndex)) {
187
193
getCategoryItems(
188
194
category = category,
You can’t perform that action at this time.
0 commit comments