From e5055dca50f9f59666fb2d0dd5d91c5cc97837b6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 17 Nov 2019 18:41:20 +0800 Subject: [PATCH] up --- .../java/io/legado/app/model/rss/RssParserByRule.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt b/app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt index 3d42ede02..f4661ae45 100644 --- a/app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt +++ b/app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt @@ -37,12 +37,12 @@ object RssParserByRule { Debug.log(sourceUrl, "┌获取列表") val collections = analyzeRule.getElements(ruleArticles) Debug.log(sourceUrl, "└列表大小:${collections.size}") - val ruleTitle = analyzeRule.splitSourceRule(rssSource.ruleTitle ?: "") - val rulePubDate = analyzeRule.splitSourceRule(rssSource.rulePubDate ?: "") - val ruleCategories = analyzeRule.splitSourceRule(rssSource.ruleCategories ?: "") - val ruleDescription = analyzeRule.splitSourceRule(rssSource.ruleDescription ?: "") - val ruleImage = analyzeRule.splitSourceRule(rssSource.ruleImage ?: "") - val ruleLink = analyzeRule.splitSourceRule(rssSource.ruleLink ?: "") + val ruleTitle = analyzeRule.splitSourceRule(rssSource.ruleTitle) + val rulePubDate = analyzeRule.splitSourceRule(rssSource.rulePubDate) + val ruleCategories = analyzeRule.splitSourceRule(rssSource.ruleCategories) + val ruleDescription = analyzeRule.splitSourceRule(rssSource.ruleDescription) + val ruleImage = analyzeRule.splitSourceRule(rssSource.ruleImage) + val ruleLink = analyzeRule.splitSourceRule(rssSource.ruleLink) for ((index, item) in collections.withIndex()) { getItem( sourceUrl, item, analyzeRule, index == 0, ruleTitle,