diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index 1e0670f6b..73618b142 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt @@ -117,9 +117,12 @@ class AnalyzeRule(var book: BaseBook? = null) : JsExtensions { @Throws(Exception::class) fun getStringList(ruleList: List, isUrl: Boolean = false): List? { var result: Any? = null - content?.let { o -> - if (ruleList.isNotEmpty()) { - if (ruleList.isNotEmpty()) result = o + val content = this.content + if (content != null && ruleList.isNotEmpty()) { + result = content + if (content is NativeObject) { + result = content[ruleList[0].rule]?.toString() + } else { for (sourceRule in ruleList) { putRule(sourceRule.putMap) sourceRule.makeUpRule(result)