From 3249e10931c9b0af86447a0e4f52901fa30b7784 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sun, 26 Oct 2025 16:47:54 +0200 Subject: [PATCH] Exclude broken sources from catalog --- .../koitharu/kotatsu/explore/data/MangaSourcesRepository.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt b/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt index 79ce4661e..dfa5c907a 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt @@ -53,7 +53,9 @@ class MangaSourcesRepository @Inject constructor( get() = db.getSourcesDao() val allMangaSources: Set = Collections.unmodifiableSet( - EnumSet.allOf(MangaParserSource::class.java) + EnumSet.noneOf(MangaParserSource::class.java).also { + MangaParserSource.entries.filterNotTo(it, MangaParserSource::isBroken) + } ) suspend fun getEnabledSources(): List {