|
|
@ -50,7 +50,7 @@ class CheckSource(val source: BookSource) { |
|
|
|
): Coroutine<*> { |
|
|
|
): Coroutine<*> { |
|
|
|
val webBook = WebBook(source) |
|
|
|
val webBook = WebBook(source) |
|
|
|
return webBook.searchBook(keyword, scope = scope, context = context) |
|
|
|
return webBook.searchBook(keyword, scope = scope, context = context) |
|
|
|
.timeout(6000L) |
|
|
|
.timeout(60000L) |
|
|
|
.onError(Dispatchers.IO) { |
|
|
|
.onError(Dispatchers.IO) { |
|
|
|
source.addGroup("失效") |
|
|
|
source.addGroup("失效") |
|
|
|
App.db.bookSourceDao().update(source) |
|
|
|
App.db.bookSourceDao().update(source) |
|
|
|