Delegate Mangadex

Features that are now usable because of this:
- Batch add mangadex manga
- Open mangadex manga into TachiyomiSY(skipping the extension)
This commit is contained in:
Jobobby04
2020-06-25 19:35:44 -04:00
parent a2f2e7658d
commit ad82dc1c90
6 changed files with 76 additions and 9 deletions
@@ -12,6 +12,7 @@ import eu.kanade.tachiyomi.data.database.tables.MangaTable
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import eu.kanade.tachiyomi.source.CatalogueSource
import eu.kanade.tachiyomi.source.SourceManager
import eu.kanade.tachiyomi.source.SourceManager.Companion.currentDelegatedSources
import exh.EH_SOURCE_ID
import exh.EXHMigrations
import exh.EXHSavedSearch
@@ -67,6 +68,8 @@ object DebugFunctions {
}
private val throttleManager = EHentaiThrottleManager()
fun getDelegatedSourceList(): String = currentDelegatedSources.map { it.value.sourceName }.joinToString(separator = "\n")
fun ResetEHGalleriesForUpdater() {
throttleManager.resetThrottle()
runBlocking {