pull/35/head^2
kunfei 5 years ago
parent 18e6d179a7
commit 1c44a4f6e4
  1. 3
      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())
}
}

Loading…
Cancel
Save