From 553d0f7417af718d60e4885dc6d8bc4a62202ef3 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 14 Jul 2023 17:30:59 +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 --- app/src/main/assets/defaultData/rssSources.json | 17 ++++++++++++++--- .../io/legado/app/help/config/LocalConfig.kt | 8 ++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app/src/main/assets/defaultData/rssSources.json b/app/src/main/assets/defaultData/rssSources.json index f55e579fc..f9a5db131 100644 --- a/app/src/main/assets/defaultData/rssSources.json +++ b/app/src/main/assets/defaultData/rssSources.json @@ -1,8 +1,19 @@ [ { + "articleStyle": 0, "customOrder": 1, "enableJs": true, "enabled": true, + "loadWithBaseUrl": true, + "singleUrl": true, + "sourceIcon": "https://funimg.pddpic.com/ktt/762ee1c9-a117-46e4-b0c7-9d820420c08b.png.slim.png", + "sourceName": "ζˆ‘ηš„ε°εΊ—", + "sourceUrl": "weixin://dl/business/?t=7J0aXwcqPPd" + }, + { + "customOrder": 2, + "enableJs": true, + "enabled": true, "singleUrl": true, "sourceGroup": "legado", "sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png", @@ -10,7 +21,7 @@ "sourceUrl": "https://www.yuque.com/legado" }, { - "customOrder": 2, + "customOrder": 3, "enableJs": true, "enabled": true, "singleUrl": true, @@ -20,7 +31,7 @@ "sourceUrl": "snssdk1128://user/profile/562564899806367" }, { - "customOrder": 3, + "customOrder": 4, "enableJs": true, "enabled": true, "singleUrl": true, @@ -30,7 +41,7 @@ "sourceUrl": "https://pan.miaogongzi.net" }, { - "customOrder": 4, + "customOrder": 5, "enableJs": true, "enabled": true, "singleUrl": true, diff --git a/app/src/main/java/io/legado/app/help/config/LocalConfig.kt b/app/src/main/java/io/legado/app/help/config/LocalConfig.kt index b9819dbeb..d5a74c39a 100644 --- a/app/src/main/java/io/legado/app/help/config/LocalConfig.kt +++ b/app/src/main/java/io/legado/app/help/config/LocalConfig.kt @@ -59,16 +59,16 @@ by appCtx.getSharedPreferences("local", Context.MODE_PRIVATE) { get() = isLastVersion(1, "ruleHelpVersion") val needUpHttpTTS: Boolean - get() = !isLastVersion(5, "httpTtsVersion") + get() = !isLastVersion(6, "httpTtsVersion") val needUpTxtTocRule: Boolean - get() = !isLastVersion(2, "txtTocRuleVersion") + get() = !isLastVersion(3, "txtTocRuleVersion") val needUpRssSources: Boolean - get() = !isLastVersion(4, "rssSourceVersion") + get() = !isLastVersion(5, "rssSourceVersion") val needUpDictRule: Boolean - get() = !isLastVersion(1, "needUpDictRule") + get() = !isLastVersion(2, "needUpDictRule") var versionCode get() = getLong(versionCodeKey, 0)