Exclude broken sources from catalog
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user