diff --git a/app/src/main/assets/rssSource.json b/app/src/main/assets/rssSource.json deleted file mode 100644 index 1cdc02066..000000000 --- a/app/src/main/assets/rssSource.json +++ /dev/null @@ -1,319 +0,0 @@ -[ - { - "customOrder": 14, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "class.wrap", - "ruleContent": "@js:String(result).replace(/
时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/qdaily.jpg", - "sourceName": "好奇心日报", - "sourceUrl": "http://47.105.79.245/v3/article?feedId=13&articleId=0&pageSize=20&isLookDown=true" - }, - { - "customOrder": 5, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/mtime.jpg", - "sourceName": "时光网", - "sourceUrl": "http://47.105.79.245/v3/article?feedId=27&articleId=0&pageSize=20&isLookDown=true" - }, - { - "customOrder": 8, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/zimuzu-9999x0w.jpg", - "sourceName": "字幕组", - "sourceUrl": "http://47.105.79.245/v3/article?feedId=3&articleId=0&pageSize=20&isLookDown=true" - }, - { - "customOrder": 11, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/doubanmoviereview.jpg", - "sourceName": "豆瓣最受欢迎的影评", - "sourceUrl": "http://47.105.79.245/v3/article?feedId=76&articleId=0&pageSize=20&isLookDown=true" - }, - { - "customOrder": 7, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/anitama.jpg", - "sourceName": "Anitama", - "sourceUrl": "http://47.105.79.245/v3/article?feedId=86&articleId=0&pageSize=20&isLookDown=true" - }, - { - "customOrder": 12, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/nfw.png", - "sourceName": "南方要闻", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:27}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":80}\"\n}" - }, - { - "customOrder": 9, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/iplaysoft.png", - "sourceName": "异次元软件世界", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:27}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":51}\"\n}" - }, - { - "customOrder": 13, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/appin.png", - "sourceName": "小众软件", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:27}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":14}\"\n}" - }, - { - "customOrder": 15, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/zhangzishi.png", - "sourceName": "涨姿势", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:27}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":78}\"\n}" - }, - { - "customOrder": 16, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/penti.png", - "sourceName": "喷嚏图卦", - "sourceUrl": "http://47.105.79.245/v3/article?feedId=66&articleId=0&pageSize=20&isLookDown=true" - }, - { - "customOrder": 17, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/guancha.jpg", - "sourceName": "观察者 要闻", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:28}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":105}\"\n}" - }, - { - "customOrder": 18, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/meiriyiwen.png", - "sourceName": "每日一文", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:27}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":87}\"\n}" - }, - { - "customOrder": 4, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": false, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "http://47.105.79.245/netease.jpg", - "sourceName": "网易要闻", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:27}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":98}\"\n}" - }, - { - "customOrder": 19, - "enableJs": false, - "enabled": true, - "loadWithBaseUrl": false, - "ruleArticles": "$.data.data[*]", - "ruleContent": "时间:{$.data.createTimeString}({$.data.createTime})
{$.data.content}原文链接", - "ruleDescription": "", - "ruleImage": "$.thumbnail", - "ruleLink": "http://47.105.79.245/v2/text/{$.id}", - "rulePubDate": "$.createTimeString", - "ruleTitle": "$.title", - "sourceGroup": "", - "sourceIcon": "https://static.zhihu.com/heifetz/assets/apple-touch-icon-120.b3e6278d.png", - "sourceName": "知乎每日精选", - "sourceUrl": "http://47.105.79.245/v2/article/newest,{\n \"headers\": \"{User-Agent:\\\"okhttp/3.10.0\\\",Content-Type:\\\"application/json; charset=UTF-8\\\",Content-Length:26}\",\n \"method\": \"POST\",\n \"body\": \"{\\\"articleId\\\":0,\\\"feedId\\\":8}\"\n}" - }, - { - "customOrder": 0, - "enableJs": true, - "enabled": true, - "loadWithBaseUrl": true, - "ruleArticles": "@css:.booklist-card", - "ruleContent": "", - "ruleLink": "@css:.booklist-card-content>a@href##^##http://www\\.yousuu\\.com", - "rulePubDate": "@css:.ResultBooklistItemClasses,.ResultBooklistItemUpdateAt@text##,,##,", - "ruleTitle": "@css:.booklist-card-content>a@text", - "sourceGroup": "", - "sourceIcon": "https://gitee.com/alanskycn/yuedu/raw/master/JS/youshuwang.png", - "sourceName": "优书网", - "sourceUrl": "http://www.yousuu.com/booklists?type=man&screen=latest&page=1" - } -] \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 46eaa1deb..5509812c1 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -74,14 +74,8 @@ class MainActivity : VMBaseActivity