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") ?: ""