|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |