mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-28 03:57:50 +02:00
Add throttling when restoring E-Hentai/ExHentai galleries.
This commit is contained in:
@ -176,7 +176,12 @@ class GalleryAdder {
|
||||
|
||||
//Fetch and copy chapters
|
||||
try {
|
||||
sourceObj.fetchChapterList(manga).map {
|
||||
val chapterListObs = if(sourceObj is EHentai) {
|
||||
sourceObj.fetchChapterList(manga, throttleFunc)
|
||||
} else {
|
||||
sourceObj.fetchChapterList(manga)
|
||||
}
|
||||
chapterListObs.map {
|
||||
syncChaptersWithSource(db, it, manga, sourceObj)
|
||||
}.toBlocking().first()
|
||||
} catch (e: Exception) {
|
||||
|
Reference in New Issue
Block a user