pull/49/head
kunfei 5 years ago
parent 7b9df84545
commit e5055dca50
  1. 12
      app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt

@ -37,12 +37,12 @@ object RssParserByRule {
Debug.log(sourceUrl, "┌获取列表") Debug.log(sourceUrl, "┌获取列表")
val collections = analyzeRule.getElements(ruleArticles) val collections = analyzeRule.getElements(ruleArticles)
Debug.log(sourceUrl, "└列表大小:${collections.size}") Debug.log(sourceUrl, "└列表大小:${collections.size}")
val ruleTitle = analyzeRule.splitSourceRule(rssSource.ruleTitle ?: "") val ruleTitle = analyzeRule.splitSourceRule(rssSource.ruleTitle)
val rulePubDate = analyzeRule.splitSourceRule(rssSource.rulePubDate ?: "") val rulePubDate = analyzeRule.splitSourceRule(rssSource.rulePubDate)
val ruleCategories = analyzeRule.splitSourceRule(rssSource.ruleCategories ?: "") val ruleCategories = analyzeRule.splitSourceRule(rssSource.ruleCategories)
val ruleDescription = analyzeRule.splitSourceRule(rssSource.ruleDescription ?: "") val ruleDescription = analyzeRule.splitSourceRule(rssSource.ruleDescription)
val ruleImage = analyzeRule.splitSourceRule(rssSource.ruleImage ?: "") val ruleImage = analyzeRule.splitSourceRule(rssSource.ruleImage)
val ruleLink = analyzeRule.splitSourceRule(rssSource.ruleLink ?: "") val ruleLink = analyzeRule.splitSourceRule(rssSource.ruleLink)
for ((index, item) in collections.withIndex()) { for ((index, item) in collections.withIndex()) {
getItem( getItem(
sourceUrl, item, analyzeRule, index == 0, ruleTitle, sourceUrl, item, analyzeRule, index == 0, ruleTitle,

Loading…
Cancel
Save