|
|
@ -109,6 +109,7 @@ object Restore { |
|
|
|
source.loginUrl = jsonItem.readString("loginUrl") |
|
|
|
source.loginUrl = jsonItem.readString("loginUrl") |
|
|
|
source.bookUrlPattern = jsonItem.readString("ruleBookUrlPattern") |
|
|
|
source.bookUrlPattern = jsonItem.readString("ruleBookUrlPattern") |
|
|
|
source.customOrder = jsonItem.readInt("serialNumber") ?: 0 |
|
|
|
source.customOrder = jsonItem.readInt("serialNumber") ?: 0 |
|
|
|
|
|
|
|
source.header = OldRule.uaToHeader(jsonItem.readString("httpUserAgent")) |
|
|
|
val searchRule = SearchRule( |
|
|
|
val searchRule = SearchRule( |
|
|
|
searchUrl = OldRule.toNewUrl(jsonItem.readString("ruleSearchUrl")), |
|
|
|
searchUrl = OldRule.toNewUrl(jsonItem.readString("ruleSearchUrl")), |
|
|
|
bookList = jsonItem.readString("ruleSearchList"), |
|
|
|
bookList = jsonItem.readString("ruleSearchList"), |
|
|
|