From 1c44a4f6e40a958e3437c9e4485132374ad37ed8 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 2 Oct 2019 17:24:43 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt index 9a1b904f0..b1f8d70cb 100644 --- a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt @@ -13,6 +13,9 @@ class RssArticlesViewModel(application: Application) : BaseViewModel(application execute { val xml = URL(url).readText() RssParser.parseXML(xml).let { + it.forEach { rssArticle -> + rssArticle.origin = url + } App.db.rssArtivleDao().insert(*it.toTypedArray()) } }