From c4a950b039c8e3b8a6bb54ee0d413b3253b1bbcb Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 9 Oct 2019 15:49:09 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/rss/RssParserByRule.kt | 2 +- app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt | 2 +- 2 files changed, 2 insertions(+), 2 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 ba21a4a6c..476c6a49e 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 @@ -27,7 +27,7 @@ object RssParserByRule { } else { val articleList = mutableListOf() val analyzeRule = AnalyzeRule() - analyzeRule.setContent(xml) + analyzeRule.setContent(xml, rssSource.sourceUrl) var reverse = true if (ruleArticles.startsWith("-")) { reverse = false diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt index e1b4b85e8..89a1e0825 100644 --- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt @@ -51,7 +51,7 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application) { AnalyzeUrl(it, baseUrl = rssArticle.origin).getResponseAsync().await().body() ?.let { body -> AnalyzeRule().apply { - setContent(body) + setContent(body, NetworkUtils.getAbsoluteURL(rssArticle.origin, it)) getString(ruleContent)?.let { content -> contentLiveData.postValue(content) }