书源校验错误记录到注释里

pull/823/head
gedoor 4 years ago
parent 62a91fd8ea
commit 5fd83e87c8
  1. 3
      app/src/main/java/io/legado/app/service/CheckSourceService.kt

@ -117,7 +117,8 @@ class CheckSourceService : BaseService() {
}.timeout(60000L) }.timeout(60000L)
.onError { .onError {
source.addGroup("失效") source.addGroup("失效")
source.bookSourceComment = "${source.bookSourceComment}\n${it.localizedMessage}" source.bookSourceComment =
"error:${it.localizedMessage}\n${source.bookSourceComment}"
App.db.bookSourceDao.update(source) App.db.bookSourceDao.update(source)
}.onSuccess { }.onSuccess {
source.removeGroup("失效") source.removeGroup("失效")

Loading…
Cancel
Save