diff --git a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt index 7767fe73d..511b499bf 100644 --- a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt +++ b/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()) { printLog(debugSource, 1, "", showTime = false) infoDebug(BookHelp.toBook(searchBooks[0])) + } else { + printLog(debugSource, -1, "未获取到书籍") } } } @@ -110,6 +112,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { if (it.isNotEmpty()) { printLog(debugSource, 1, "", showTime = false) contentDebug(book, it[0]) + } else { + printLog(debugSource, -1, "目录列表为空") } } }