|
|
|
@ -188,12 +188,14 @@ class DownloadService : BaseService() { |
|
|
|
|
bookChapter, |
|
|
|
|
scope = this, |
|
|
|
|
context = searchPool |
|
|
|
|
).onError { |
|
|
|
|
).timeout(3000L) |
|
|
|
|
.onError { |
|
|
|
|
synchronized(this) { |
|
|
|
|
downloadingList.remove(bookChapter.url) |
|
|
|
|
} |
|
|
|
|
Download.addLog(it.localizedMessage) |
|
|
|
|
}.onSuccess(IO) { content -> |
|
|
|
|
} |
|
|
|
|
.onSuccess(IO) { content -> |
|
|
|
|
BookHelp.saveContent(book, bookChapter, content) |
|
|
|
|
synchronized(this@DownloadService) { |
|
|
|
|
downloadCount[book.bookUrl]?.increaseSuccess() |
|
|
|
|