pull/34/head
kunfei 5 years ago
parent 1f02e47a59
commit de8fb74b8d
  1. 10
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt

@ -20,16 +20,16 @@ class AnalyzeByJSoup {
private var element: Element? = null
fun parse(doc: Any): AnalyzeByJSoup {
if (doc is Element) {
element = doc
element = if (doc is Element) {
doc
} else if (doc is JXNode) {
if (doc.isElement) {
element = doc.asElement()
doc.asElement()
} else {
element = Jsoup.parse(doc.value().toString())
Jsoup.parse(doc.value().toString())
}
} else {
element = Jsoup.parse(doc.toString())
Jsoup.parse(doc.toString())
}
return this
}

Loading…
Cancel
Save