From 339f3507bd7e0d82f90a664837d1e0aef394e2c9 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 30 Jul 2021 15:58:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 5798abb7d..7df8dbbcc 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 @@ -23,7 +23,7 @@ import kotlin.collections.HashMap * 解析规则获取结果 */ @Keep -@Suppress("unused", "RegExpRedundantEscape") +@Suppress("unused", "RegExpRedundantEscape", "MemberVisibilityCanBePrivate") class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions { var book = if (ruleData is BaseBook) ruleData else null @@ -31,8 +31,11 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions { var chapter: BookChapter? = null var nextChapterUrl: String? = null var content: Any? = null + private set var baseUrl: String? = null + private set var redirectUrl: URL? = null + private set private var isJSON: Boolean = false private var isRegex: Boolean = false @@ -403,7 +406,6 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions { /** * 规则类 */ - inner class SourceRule internal constructor( ruleStr: String, internal var mode: Mode = Mode.Default