|
|
@ -28,9 +28,9 @@ object RssParserByRule { |
|
|
|
val articleList = mutableListOf<RssArticle>() |
|
|
|
val articleList = mutableListOf<RssArticle>() |
|
|
|
val analyzeRule = AnalyzeRule() |
|
|
|
val analyzeRule = AnalyzeRule() |
|
|
|
analyzeRule.setContent(xml) |
|
|
|
analyzeRule.setContent(xml) |
|
|
|
var reverse = false |
|
|
|
var reverse = true |
|
|
|
if (ruleArticles.startsWith("-")) { |
|
|
|
if (ruleArticles.startsWith("-")) { |
|
|
|
reverse = true |
|
|
|
reverse = false |
|
|
|
ruleArticles = ruleArticles.substring(1) |
|
|
|
ruleArticles = ruleArticles.substring(1) |
|
|
|
} |
|
|
|
} |
|
|
|
val collections = analyzeRule.getElements(ruleArticles) |
|
|
|
val collections = analyzeRule.getElements(ruleArticles) |
|
|
|