From 036bb3be532e8e127e1f2d7d7379de11372a7d87 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 29 Mar 2020 22:02:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/CheckSourceService.kt | 6 +++++- 1 file changed, 5 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 2105ea10f..c7d2ef2a7 100644 --- a/app/src/main/java/io/legado/app/service/CheckSourceService.kt +++ b/app/src/main/java/io/legado/app/service/CheckSourceService.kt @@ -72,7 +72,11 @@ class CheckSourceService : BaseService() { if (processIndex < allIds.size) { val sourceUrl = allIds[processIndex] App.db.bookSourceDao().getBookSource(sourceUrl)?.let { source -> - check(source) + if (source.searchUrl.isNullOrEmpty()) { + onNext(sourceUrl) + } else { + check(source) + } } ?: onNext(sourceUrl) } }