Cleanup
This commit is contained in:
parent
4afe227e02
commit
7006341fab
@ -171,12 +171,17 @@ class MigrationListController(bundle: Bundle? = null) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (searchResult != null && !(searchResult.url == mangaObj.url && source.id == mangaObj.source)) {
|
if (searchResult != null && !(searchResult.url == mangaObj.url && source.id == mangaObj.source)) {
|
||||||
val localManga =
|
val localManga = smartSearchEngine.networkToLocalManga(
|
||||||
smartSearchEngine.networkToLocalManga(
|
searchResult,
|
||||||
searchResult,
|
source.id
|
||||||
source.id
|
)
|
||||||
)
|
|
||||||
val chapters = (if (source is EHentai) source.getChapterList(localManga.toMangaInfo(), throttleManager::throttle) else source.getChapterList(localManga.toMangaInfo()))
|
val chapters = if (source is EHentai) {
|
||||||
|
source.getChapterList(localManga.toMangaInfo(), throttleManager::throttle)
|
||||||
|
} else {
|
||||||
|
source.getChapterList(localManga.toMangaInfo())
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
syncChaptersWithSource(db, chapters.map { it.toSChapter() }, localManga, source)
|
syncChaptersWithSource(db, chapters.map { it.toSChapter() }, localManga, source)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
@ -70,6 +70,7 @@ import eu.kanade.tachiyomi.util.view.showBar
|
|||||||
import eu.kanade.tachiyomi.util.view.snack
|
import eu.kanade.tachiyomi.util.view.snack
|
||||||
import eu.kanade.tachiyomi.widget.SimpleAnimationListener
|
import eu.kanade.tachiyomi.widget.SimpleAnimationListener
|
||||||
import eu.kanade.tachiyomi.widget.SimpleSeekBarListener
|
import eu.kanade.tachiyomi.widget.SimpleSeekBarListener
|
||||||
|
import exh.isEhBasedSource
|
||||||
import exh.util.defaultReaderType
|
import exh.util.defaultReaderType
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
@ -499,7 +500,7 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|||||||
// If we are using EHentai/ExHentai, get a new image URL
|
// If we are using EHentai/ExHentai, get a new image URL
|
||||||
presenter.manga?.let { m ->
|
presenter.manga?.let { m ->
|
||||||
val src = sourceManager.get(m.source)
|
val src = sourceManager.get(m.source)
|
||||||
if (src is EHentai) {
|
if (src?.isEhBasedSource() == true) {
|
||||||
page.imageUrl = null
|
page.imageUrl = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user