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()) } }