From da0ab12a5a4c139ead04f1b6b957f756f8755dc4 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Mon, 16 May 2022 17:18:56 +0800 Subject: [PATCH 1/2] fix(SourceAnalyzer): enabledCookieJar option --- app/src/main/java/io/legado/app/help/SourceAnalyzer.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/help/SourceAnalyzer.kt b/app/src/main/java/io/legado/app/help/SourceAnalyzer.kt index b5c461f25..5fb5e8437 100644 --- a/app/src/main/java/io/legado/app/help/SourceAnalyzer.kt +++ b/app/src/main/java/io/legado/app/help/SourceAnalyzer.kt @@ -150,6 +150,7 @@ object SourceAnalyzer { source.customOrder = sourceAny.customOrder source.enabled = sourceAny.enabled source.enabledExplore = sourceAny.enabledExplore + source.enabledCookieJar = sourceAny.enabledCookieJar source.concurrentRate = sourceAny.concurrentRate source.header = sourceAny.header source.loginUrl = when (sourceAny.loginUrl) { @@ -219,6 +220,7 @@ object SourceAnalyzer { var customOrder: Int = 0, // 手动排序编号 var enabled: Boolean = true, // 是否启用 var enabledExplore: Boolean = true, // 启用发现 + var enabledCookieJar: Boolean = false, // 启用CookieJar var concurrentRate: String? = null, // 并发率 var header: String? = null, // 请求头 var loginUrl: Any? = null, // 登录规则 From 16c118225468906477e8055cc98588c48470019a Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Mon, 16 May 2022 18:00:50 +0800 Subject: [PATCH 2/2] fix(RssSource): enabledCookieJar option --- app/src/main/java/io/legado/app/data/entities/RssSource.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/data/entities/RssSource.kt b/app/src/main/java/io/legado/app/data/entities/RssSource.kt index dca1fa0ac..822172cd0 100644 --- a/app/src/main/java/io/legado/app/data/entities/RssSource.kt +++ b/app/src/main/java/io/legado/app/data/entities/RssSource.kt @@ -153,6 +153,7 @@ data class RssSource( style = doc.readString("$.style"), enableJs = doc.readBool("$.enableJs") ?: true, loadWithBaseUrl = doc.readBool("$.loadWithBaseUrl") ?: true, + enabledCookieJar = doc.readBool("$.enabledCookieJar") ?: false, customOrder = doc.readInt("$.customOrder") ?: 0 ) }