From 0aba2edceeb34a25054d7fa9b1cf9ca4cf83bc39 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 7 Jul 2021 11:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0webdav=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/assets/defaultData/rssSources.json | 25 ++++++------------- .../java/io/legado/app/help/LocalConfig.kt | 2 +- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/app/src/main/assets/defaultData/rssSources.json b/app/src/main/assets/defaultData/rssSources.json index cb6140a93..0537719fa 100644 --- a/app/src/main/assets/defaultData/rssSources.json +++ b/app/src/main/assets/defaultData/rssSources.json @@ -9,31 +9,22 @@ "sourceUrl": "https://www.yuque.com/legado" }, { - "articleStyle": 0, "customOrder": 2, "enableJs": true, "enabled": true, - "loadWithBaseUrl": false, - "ruleArticles": "class.release-main-section||tbody@tr", - "ruleContent": "@js:\nif(baseUrl.match(\/90pan\/)){\nresult=result.replace(\/true\\||<.*?>([^<]+)<\\\/span><\\\/a>\/g,'

$2<\/a><\/h4>

$1<\/p>\\n\\n')}\nelse{\nhtml=String(java.getString(\"@@class.markdown-body@html\",false)+java.getString(\"@@class.flex-justify-between.-1@html\",false));\nhref='https:\/\/github.com'+String(java.getString(\"@@class.flex-justify-between.-1@class.Box-body.0@a@href\",false))\nhtml+'

下载地址:<\/p>'+href+'<\/a>'\n}", - "ruleImage": "@js:if(baseUrl.match(\/legado|704\/g)){\nresult='https:\/\/urlmin.cn\/034'\n}else{result=\"https:\/\/urlmin.cn\/15c\"}", - "ruleLink": "tag.a.0@href\n@js:if(baseUrl.match(\/90pan\/)){\nresult='https:\/\/www.90pan.com\/ajax.php,{\"method\": \"POST\",\"body\": \"action=load_down_addr1&file_id='+result.match(\/b(\\d+)\/)[1]+'\"}'}else{\nresult='https:\/\/github.com'+result\n}", - "ruleNextPage": "text.Next@href", - "rulePubDate": "tag.td!0@text||class.markdown-body@text##\\n##·", - "ruleTitle": "tag.a.0@text", - "sortUrl": "阅读2.0·GitHub::https:\/\/github.com\/gedoor\/MyBookshelf\/releases\n阅读3.0·GitHub::https:\/\/github.com\/gedoor\/legado\/releases\n阅读2.0·90盘::https:\/\/www.90pan.com\/o138703\n阅读3.0·90盘::https:\/\/www.90pan.com\/o138704", - "sourceIcon": "http:\/\/ku.mumuceo.com\/static\/images\/applogo\/yuedu.png", - "sourceName": "阅读下载", - "sourceUrl": "https:\/\/github.com\/gedoor\/legado\/releases", - "style": "" + "singleUrl": true, + "sourceIcon": "http:\/\/mmbiz.qpic.cn\/mmbiz_png\/hpfMV8hEuL2eS6vnCxvTzoOiaCAibV6exBzJWq9xMic9xDg3YXAick87tsfafic0icRwkQ5ibV0bJ84JtSuxhPuEDVquA\/0?wx_fmt=png", + "sourceName": "小说拾遗", + "sourceUrl": "snssdk1128:\/\/user\/profile\/562564899806367" }, { "customOrder": 3, "enableJs": true, "enabled": true, + "loadWithBaseUrl": false, "singleUrl": true, - "sourceIcon": "http:\/\/mmbiz.qpic.cn\/mmbiz_png\/hpfMV8hEuL2eS6vnCxvTzoOiaCAibV6exBzJWq9xMic9xDg3YXAick87tsfafic0icRwkQ5ibV0bJ84JtSuxhPuEDVquA\/0?wx_fmt=png", - "sourceName": "小说拾遗", - "sourceUrl": "snssdk1128:\/\/user\/profile\/562564899806367" + "sourceIcon": "https://Cloud.miaogongzi.net/images/icon.png", + "sourceName": "Meow云", + "sourceUrl": "https://pan.miaogongzi.net" } ] \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/help/LocalConfig.kt b/app/src/main/java/io/legado/app/help/LocalConfig.kt index b2aa30234..8c90f7498 100644 --- a/app/src/main/java/io/legado/app/help/LocalConfig.kt +++ b/app/src/main/java/io/legado/app/help/LocalConfig.kt @@ -35,7 +35,7 @@ object LocalConfig { get() = !isLastVersion(1, "txtTocRuleVersion") val hasUpRssSources: Boolean - get() = !isLastVersion(3, "rssSourceVersion") + get() = !isLastVersion(4, "rssSourceVersion") var versionCode get() = localConfig.getLong(versionCodeKey, 0)