From 463684faf22dcabd9f3fba3a0298644183ce532d Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Fri, 21 Jan 2022 22:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=80=9A=E8=BF=87=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E7=A7=BB=E9=99=A4=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/CheckSourceService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/CheckSourceService.kt b/app/src/main/java/io/legado/app/service/CheckSourceService.kt index 13a1695fa..123d9bb04 100644 --- a/app/src/main/java/io/legado/app/service/CheckSourceService.kt +++ b/app/src/main/java/io/legado/app/service/CheckSourceService.kt @@ -120,7 +120,7 @@ class CheckSourceService : BaseService() { } var books = WebBook.searchBookAwait(this, source, searchWord) if (books.isEmpty()) { - source.addGroup("搜索为空") + source.addGroup("搜索失效") val exs = source.exploreKinds var url: String? = null for (ex in exs) { @@ -134,6 +134,7 @@ class CheckSourceService : BaseService() { } books = WebBook.exploreBookAwait(this, source, url) } + source.removeGroup("搜索失效") var book = books.first().toBook() if (book.tocUrl.isBlank()) { book = WebBook.getBookInfoAwait(this, source, book)