Update AnalyzeByJSoup.kt

简化
pull/1108/head
bushixuanqi 3 years ago committed by GitHub
parent f18ff8a1ff
commit 0aa63a9c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt

@ -289,7 +289,7 @@ class AnalyzeByJSoup(doc: Any) {
/** /**
* 获取所有元素 * 获取所有元素
* */ * */
var elements:Elements = if (beforeRule.isEmpty()) temp.children() //允许索引直接作为根元素,此时前置规则为空,效果与children相同 var elements = if (beforeRule.isEmpty()) temp.children() //允许索引直接作为根元素,此时前置规则为空,效果与children相同
else { else {
val rules = beforeRule.split(".") val rules = beforeRule.split(".")
when (rules[0]) { when (rules[0]) {

Loading…
Cancel
Save