pull/32/head
kunfei 5 years ago
parent 479859d730
commit 1a646d1111
  1. 12
      app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt

@ -48,6 +48,9 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
}
}
}
.onError {
printLog(debugSource, -1, it.localizedMessage)
}
}
fun infoDebug(book: Book) {
@ -55,6 +58,9 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
.onSuccess {
tocDebug(book)
}
.onError {
printLog(debugSource, -1, it.localizedMessage)
}
}
private fun tocDebug(book: Book) {
@ -66,6 +72,9 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
}
}
}
.onError {
printLog(debugSource, -1, it.localizedMessage)
}
}
private fun contentDebug(book: Book, bookChapter: BookChapter) {
@ -75,5 +84,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
printLog(debugSource, 1000, it)
}
}
.onError {
printLog(debugSource, -1, it.localizedMessage)
}
}
}
Loading…
Cancel
Save