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
@@ -70,7 +70,7 @@ object DebugFunctions {
fun getDelegatedSourceList(): String = currentDelegatedSources.map { it.value.sourceName }.joinToString(separator = "\n")
fun ResetEHGalleriesForUpdater() {
fun resetEHGalleriesForUpdater() {
throttleManager.resetThrottle()
runBlocking {
val metadataManga = db.getFavoriteMangaWithMetadata().await()
@@ -183,14 +183,14 @@ object DebugFunctions {
"${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()})"
}
fun listAllHttpSources() = sourceManager.getOnlineSources().joinToString("\n") {
"${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()})"
}