|
|
@ -107,7 +107,7 @@ object Restore { |
|
|
|
source.loginUrl = jsonItem.readString("loginUrl") |
|
|
|
source.loginUrl = jsonItem.readString("loginUrl") |
|
|
|
source.bookUrlPattern = jsonItem.readString("ruleBookUrlPattern") |
|
|
|
source.bookUrlPattern = jsonItem.readString("ruleBookUrlPattern") |
|
|
|
val searchRule = SearchRule( |
|
|
|
val searchRule = SearchRule( |
|
|
|
searchUrl = jsonItem.readString("ruleSearchUrl"), |
|
|
|
searchUrl = OldRule.toNewUrl(jsonItem.readString("ruleSearchUrl")), |
|
|
|
bookList = jsonItem.readString("ruleSearchList"), |
|
|
|
bookList = jsonItem.readString("ruleSearchList"), |
|
|
|
name = jsonItem.readString("ruleSearchName"), |
|
|
|
name = jsonItem.readString("ruleSearchName"), |
|
|
|
author = jsonItem.readString("ruleSearchAuthor"), |
|
|
|
author = jsonItem.readString("ruleSearchAuthor"), |
|
|
@ -119,7 +119,7 @@ object Restore { |
|
|
|
) |
|
|
|
) |
|
|
|
source.ruleSearch = GSON.toJson(searchRule) |
|
|
|
source.ruleSearch = GSON.toJson(searchRule) |
|
|
|
val exploreRule = ExploreRule( |
|
|
|
val exploreRule = ExploreRule( |
|
|
|
exploreUrl = jsonItem.readString("ruleFindUrl"), |
|
|
|
exploreUrl = OldRule.toNewUrl(jsonItem.readString("ruleFindUrl")), |
|
|
|
bookList = jsonItem.readString("ruleFindList"), |
|
|
|
bookList = jsonItem.readString("ruleFindList"), |
|
|
|
name = jsonItem.readString("ruleFindName"), |
|
|
|
name = jsonItem.readString("ruleFindName"), |
|
|
|
author = jsonItem.readString("ruleFindAuthor"), |
|
|
|
author = jsonItem.readString("ruleFindAuthor"), |
|
|
|