pull/32/head
GKF 6 years ago
parent 706eb4a810
commit fe793e5a88
  1. 2
      app/src/main/java/io/legado/app/data/entities/rule/ChapterRule.kt
  2. 3
      app/src/main/java/io/legado/app/data/entities/rule/ContentRule.kt
  3. 3
      app/src/main/java/io/legado/app/data/entities/rule/PutRule.kt
  4. 5
      app/src/main/java/io/legado/app/data/entities/rule/Rule.kt
  5. 1
      app/src/main/java/io/legado/app/lib/theme/README.md

@ -5,5 +5,5 @@ data class ChapterRule (
var title: Rule,
var contentUrl: Rule,
var resourceUrl: Rule,
var isAllInOne: Boolean = false
var nextUrl: Rule
)

@ -2,5 +2,6 @@ package io.legado.app.data.entities.rule
data class ContentRule (
var fulltext: Rule,
var resourceUrl: Rule
var resourceUrl: Rule,
var nextUrl: Rule
)

@ -1,7 +1,6 @@
package io.legado.app.data.entities.rule
data class PutRule (
var selector: BaseRule,
var type: RuleType,
var selector: Rule,
var key: String
)

@ -2,7 +2,6 @@ package io.legado.app.data.entities.rule
data class Rule (
var selectors: List<BaseRule>,
var mode: RuleMode,
var type: RuleType,
var regex: String?,
var replacement: String?,
@ -10,10 +9,6 @@ data class Rule (
var extra: String?
)
enum class RuleMode {
FIRST, ALL, CROSS
}
enum class RuleType {
CSS, XPATH, JSON, REGEX, CONST, JS, HYBRID
}
Loading…
Cancel
Save