pull/35/head^2
kunfei 5 years ago
parent cc990cd613
commit 35c01961e5
  1. 2
      app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt
  2. 4
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt

@ -84,8 +84,8 @@ object RssParserByRule {
rssArticle.categories = analyzeRule.getString(ruleCategories)
rssArticle.description = analyzeRule.getString(ruleDescription)
rssArticle.image = analyzeRule.getString(ruleImage)
rssArticle.content = analyzeRule.getString(ruleContent)
rssArticle.link = analyzeRule.getString(ruleLink)
rssArticle.content = analyzeRule.getString(ruleContent)
if (rssArticle.title.isNullOrBlank()) {
return null
}

@ -125,8 +125,8 @@ class RssSourceEditActivity :
)
)
add(EditEntity("ruleImage", rssSource?.ruleImage, R.string.rss_rule_image))
add(EditEntity("ruleContent", rssSource?.ruleContent, R.string.rss_rule_content))
add(EditEntity("ruleLink", rssSource?.ruleLink, R.string.rss_rule_link))
add(EditEntity("ruleContent", rssSource?.ruleContent, R.string.rss_rule_content))
}
adapter.editEntities = sourceEntities
}
@ -147,8 +147,8 @@ class RssSourceEditActivity :
"ruleCategories" -> source.ruleCategories = it.value
"ruleDescription" -> source.ruleDescription = it.value
"ruleImage" -> source.ruleImage = it.value
"ruleContent" -> source.ruleContent = it.value
"ruleLink" -> source.ruleLink = it.value
"ruleContent" -> source.ruleContent = it.value
}
}
if (source.sourceName.isBlank() || source.sourceName.isBlank()) {

Loading…
Cancel
Save