diff --git a/data/episodes/src/commonMain/kotlin/app/tivi/data/episodes/SeasonsEpisodesRepository.kt b/data/episodes/src/commonMain/kotlin/app/tivi/data/episodes/SeasonsEpisodesRepository.kt index c976092ad2..23d8f2638c 100644 --- a/data/episodes/src/commonMain/kotlin/app/tivi/data/episodes/SeasonsEpisodesRepository.kt +++ b/data/episodes/src/commonMain/kotlin/app/tivi/data/episodes/SeasonsEpisodesRepository.kt @@ -197,9 +197,7 @@ class SeasonsEpisodesRepository( traktSeasonsDataSource.getSeason(local.showId, local.number!!) } val tmdbDeferred = async { - runCatching { - traktSeasonsDataSource.getSeason(local.showId, local.number!!) - }.getOrNull() + tmdbSeasonsDataSource.getSeason(local.showId, local.number!!) } val trakt = try { @@ -218,9 +216,7 @@ class SeasonsEpisodesRepository( } check(trakt != null || tmdb != null) - seasonsDao.upsert( - mergeSeason(local, trakt ?: Season.EMPTY, tmdb ?: Season.EMPTY), - ) + seasonsDao.upsert(mergeSeason(local, trakt ?: Season.EMPTY, tmdb ?: Season.EMPTY)) seasonLastRequestStore.updateLastRequest(seasonId) }