Exclude broken sources from catalog

devel
Koitharu 6 months ago
parent 0d5229b112
commit 3249e10931
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -53,7 +53,9 @@ class MangaSourcesRepository @Inject constructor(
get() = db.getSourcesDao() get() = db.getSourcesDao()
val allMangaSources: Set<MangaParserSource> = Collections.unmodifiableSet( val allMangaSources: Set<MangaParserSource> = Collections.unmodifiableSet(
EnumSet.allOf(MangaParserSource::class.java) EnumSet.noneOf<MangaParserSource>(MangaParserSource::class.java).also {
MangaParserSource.entries.filterNotTo(it, MangaParserSource::isBroken)
}
) )
suspend fun getEnabledSources(): List<MangaSource> { suspend fun getEnabledSources(): List<MangaSource> {

Loading…
Cancel
Save