From 09320bd133b4d3ed4a380c716fb79d46b4723517 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Sep 2019 11:25:05 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/storage/OldRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/storage/OldRule.kt b/app/src/main/java/io/legado/app/help/storage/OldRule.kt index 086c67d9f..3c49817a8 100644 --- a/app/src/main/java/io/legado/app/help/storage/OldRule.kt +++ b/app/src/main/java/io/legado/app/help/storage/OldRule.kt @@ -26,7 +26,7 @@ object OldRule { source = GSON.fromJsonObject(json) } runCatching { - source ?: let { + if (source == null || source?.searchUrl.isNullOrBlank()) { source = BookSource().apply { val jsonItem = jsonPath.parse(json) bookSourceUrl = jsonItem.readString("bookSourceUrl") ?: ""