pull/49/head
kunfei 5 years ago
parent fe2049318e
commit 2adf73e9dc
  1. 3
      app/src/main/java/io/legado/app/model/rss/RssParser.kt
  2. 6
      app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt
  3. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
  4. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
  5. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
  6. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
  7. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png

@ -93,9 +93,8 @@ object RssParser {
} }
eventType = xmlPullParser.next() eventType = xmlPullParser.next()
} }
articleList.reverse()
for ((index: Int, item: RssArticle) in articleList.withIndex()) { for ((index: Int, item: RssArticle) in articleList.withIndex()) {
item.order = System.currentTimeMillis() + index item.order = System.currentTimeMillis() - index
if (index == 0) { if (index == 0) {
Debug.log(sourceUrl, "┌获取标题") Debug.log(sourceUrl, "┌获取标题")
Debug.log(sourceUrl, "${item.title}") Debug.log(sourceUrl, "${item.title}")

@ -29,9 +29,9 @@ object RssParserByRule {
val articleList = mutableListOf<RssArticle>() val articleList = mutableListOf<RssArticle>()
val analyzeRule = AnalyzeRule() val analyzeRule = AnalyzeRule()
analyzeRule.setContent(body, rssSource.sourceUrl) analyzeRule.setContent(body, rssSource.sourceUrl)
var reverse = true var reverse = false
if (ruleArticles.startsWith("-")) { if (ruleArticles.startsWith("-")) {
reverse = false reverse = true
ruleArticles = ruleArticles.substring(1) ruleArticles = ruleArticles.substring(1)
} }
Debug.log(sourceUrl, "┌获取列表") Debug.log(sourceUrl, "┌获取列表")
@ -55,7 +55,7 @@ object RssParserByRule {
articleList.reverse() articleList.reverse()
} }
for ((index: Int, item: RssArticle) in articleList.withIndex()) { for ((index: Int, item: RssArticle) in articleList.withIndex()) {
item.order = System.currentTimeMillis() + index item.order = System.currentTimeMillis() - index
} }
return articleList return articleList
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Loading…
Cancel
Save