pull/32/head
kunfei 5 years ago
parent 0a3dcc7f06
commit 09320bd133
  1. 2
      app/src/main/java/io/legado/app/help/storage/OldRule.kt

@ -26,7 +26,7 @@ object OldRule {
source = GSON.fromJsonObject<BookSource>(json) source = GSON.fromJsonObject<BookSource>(json)
} }
runCatching { runCatching {
source ?: let { if (source == null || source?.searchUrl.isNullOrBlank()) {
source = BookSource().apply { source = BookSource().apply {
val jsonItem = jsonPath.parse(json) val jsonItem = jsonPath.parse(json)
bookSourceUrl = jsonItem.readString("bookSourceUrl") ?: "" bookSourceUrl = jsonItem.readString("bookSourceUrl") ?: ""

Loading…
Cancel
Save