|
|
@ -28,6 +28,7 @@ object OldRule { |
|
|
|
bookSourceName = jsonItem.readString("bookSourceName") ?: "" |
|
|
|
bookSourceName = jsonItem.readString("bookSourceName") ?: "" |
|
|
|
bookSourceGroup = jsonItem.readString("bookSourceGroup") |
|
|
|
bookSourceGroup = jsonItem.readString("bookSourceGroup") |
|
|
|
loginUrl = jsonItem.readString("loginUrl") |
|
|
|
loginUrl = jsonItem.readString("loginUrl") |
|
|
|
|
|
|
|
bookSourceComment = jsonItem.readString("bookSourceComment") ?: "" |
|
|
|
bookUrlPattern = jsonItem.readString("ruleBookUrlPattern") |
|
|
|
bookUrlPattern = jsonItem.readString("ruleBookUrlPattern") |
|
|
|
customOrder = jsonItem.readInt("serialNumber") ?: 0 |
|
|
|
customOrder = jsonItem.readInt("serialNumber") ?: 0 |
|
|
|
header = uaToHeader(jsonItem.readString("httpUserAgent")) |
|
|
|
header = uaToHeader(jsonItem.readString("httpUserAgent")) |
|
|
@ -96,6 +97,7 @@ object OldRule { |
|
|
|
source.enabledExplore = sourceAny.enabledExplore |
|
|
|
source.enabledExplore = sourceAny.enabledExplore |
|
|
|
source.header = sourceAny.header |
|
|
|
source.header = sourceAny.header |
|
|
|
source.loginUrl = sourceAny.loginUrl |
|
|
|
source.loginUrl = sourceAny.loginUrl |
|
|
|
|
|
|
|
source.bookSourceComment = sourceAny.bookSourceComment |
|
|
|
source.lastUpdateTime = sourceAny.lastUpdateTime |
|
|
|
source.lastUpdateTime = sourceAny.lastUpdateTime |
|
|
|
source.weight = sourceAny.weight |
|
|
|
source.weight = sourceAny.weight |
|
|
|
source.exploreUrl = sourceAny.exploreUrl |
|
|
|
source.exploreUrl = sourceAny.exploreUrl |
|
|
@ -144,6 +146,7 @@ object OldRule { |
|
|
|
var enabledExplore: Boolean = true, // 启用发现 |
|
|
|
var enabledExplore: Boolean = true, // 启用发现 |
|
|
|
var header: String? = null, // 请求头 |
|
|
|
var header: String? = null, // 请求头 |
|
|
|
var loginUrl: String? = null, // 登录地址 |
|
|
|
var loginUrl: String? = null, // 登录地址 |
|
|
|
|
|
|
|
var bookSourceComment: String? = "", //书源注释 |
|
|
|
var lastUpdateTime: Long = 0, // 最后更新时间,用于排序 |
|
|
|
var lastUpdateTime: Long = 0, // 最后更新时间,用于排序 |
|
|
|
var weight: Int = 0, // 智能排序的权重 |
|
|
|
var weight: Int = 0, // 智能排序的权重 |
|
|
|
var exploreUrl: String? = null, // 发现url |
|
|
|
var exploreUrl: String? = null, // 发现url |
|
|
|