Remove warning message for unsupported related titles
This commit is contained in:
parent
d3d0efdfcd
commit
e5bf2de4bd
1 changed files with 1 additions and 12 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
package eu.kanade.tachiyomi.source
|
package eu.kanade.tachiyomi.source
|
||||||
|
|
||||||
import dev.icerock.moko.graphics.BuildConfig
|
|
||||||
import eu.kanade.tachiyomi.source.model.FilterList
|
import eu.kanade.tachiyomi.source.model.FilterList
|
||||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
|
@ -122,17 +121,7 @@ interface CatalogueSource : Source {
|
||||||
) {
|
) {
|
||||||
runCatching { fetchRelatedMangaList(manga) }
|
runCatching { fetchRelatedMangaList(manga) }
|
||||||
.onSuccess { if (it.isNotEmpty()) pushResults(Pair("", it), false) }
|
.onSuccess { if (it.isNotEmpty()) pushResults(Pair("", it), false) }
|
||||||
.onFailure { e ->
|
.onFailure { e -> logcat(LogPriority.ERROR, e) { "## getRelatedMangaListByExtension: $e" } }
|
||||||
@Suppress("KotlinConstantConditions")
|
|
||||||
if (BuildConfig.BUILD_TYPE == "release") {
|
|
||||||
logcat(LogPriority.ERROR, e) { "## getRelatedMangaListByExtension: $e" }
|
|
||||||
} else {
|
|
||||||
throw UnsupportedOperationException(
|
|
||||||
"Extension doesn't support site's related entries," +
|
|
||||||
" please report an issue to Komikku."
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue