pull/32/head
kunfei 5 years ago
parent b8eec9ef72
commit 5790126325
  1. 4
      app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt

@ -80,6 +80,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
if (searchBooks.isNotEmpty()) { if (searchBooks.isNotEmpty()) {
printLog(debugSource, 1, "", showTime = false) printLog(debugSource, 1, "", showTime = false)
infoDebug(BookHelp.toBook(searchBooks[0])) infoDebug(BookHelp.toBook(searchBooks[0]))
} else {
printLog(debugSource, -1, "未获取到书籍")
} }
} }
} }
@ -110,6 +112,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
if (it.isNotEmpty()) { if (it.isNotEmpty()) {
printLog(debugSource, 1, "", showTime = false) printLog(debugSource, 1, "", showTime = false)
contentDebug(book, it[0]) contentDebug(book, it[0])
} else {
printLog(debugSource, -1, "目录列表为空")
} }
} }
} }

Loading…
Cancel
Save