Blacklist the nHentai extension non-english sources, and a few debug function edits

This commit is contained in:
Jobobby04 2020-07-30 16:15:38 -04:00
parent ff48e89161
commit 06e57b790e
2 changed files with 8 additions and 4 deletions

View File

@ -70,7 +70,7 @@ object DebugFunctions {
fun getDelegatedSourceList(): String = currentDelegatedSources.map { it.value.sourceName }.joinToString(separator = "\n") fun getDelegatedSourceList(): String = currentDelegatedSources.map { it.value.sourceName }.joinToString(separator = "\n")
fun ResetEHGalleriesForUpdater() { fun resetEHGalleriesForUpdater() {
throttleManager.resetThrottle() throttleManager.resetThrottle()
runBlocking { runBlocking {
val metadataManga = db.getFavoriteMangaWithMetadata().await() val metadataManga = db.getFavoriteMangaWithMetadata().await()
@ -183,14 +183,14 @@ object DebugFunctions {
"${it.id}: ${it.name} (${it.lang.toUpperCase()})" "${it.id}: ${it.name} (${it.lang.toUpperCase()})"
} }
fun listFilteredSources() = sourceManager.getVisibleCatalogueSources().joinToString("\n") { fun listVisibleSources() = sourceManager.getVisibleCatalogueSources().joinToString("\n") {
"${it.id}: ${it.name} (${it.lang.toUpperCase()})" "${it.id}: ${it.name} (${it.lang.toUpperCase()})"
} }
fun listAllHttpSources() = sourceManager.getOnlineSources().joinToString("\n") { fun listAllHttpSources() = sourceManager.getOnlineSources().joinToString("\n") {
"${it.id}: ${it.name} (${it.lang.toUpperCase()})" "${it.id}: ${it.name} (${it.lang.toUpperCase()})"
} }
fun listFilteredHttpSources() = sourceManager.getVisibleOnlineSources().joinToString("\n") { fun listVisibleHttpSources() = sourceManager.getVisibleOnlineSources().joinToString("\n") {
"${it.id}: ${it.name} (${it.lang.toUpperCase()})" "${it.id}: ${it.name} (${it.lang.toUpperCase()})"
} }

View File

@ -3,7 +3,11 @@ package exh.source
import exh.MERGED_SOURCE_ID import exh.MERGED_SOURCE_ID
object BlacklistedSources { object BlacklistedSources {
val NHENTAI_EXT_SOURCES = listOf(3122156392225024195) val NHENTAI_EXT_SOURCES = listOf(
3122156392225024195,
4726175775739752699,
2203215402871965477
)
val PERVEDEN_EN_EXT_SOURCES = listOf(4673633799850248749) val PERVEDEN_EN_EXT_SOURCES = listOf(4673633799850248749)
val PERVEDEN_IT_EXT_SOURCES = listOf(1433898225963724122) val PERVEDEN_IT_EXT_SOURCES = listOf(1433898225963724122)
val EHENTAI_EXT_SOURCES = listOf( val EHENTAI_EXT_SOURCES = listOf(