@ -55,7 +55,7 @@ object Debug {
debugSource = rssSource.sourceUrl
log(debugSource, "︾开始解析")
val sort = rssSource.sortUrls().entries.first()
Rss.getArticles(sort.key, sort.value, rssSource, null)
Rss.getArticles(sort.key, sort.value, rssSource, null, 1)
.onSuccess {
if (it.articles.isEmpty()) {
log(debugSource, "⇒列表页解析成功,为空")
@ -27,10 +27,10 @@ class RssArticlesViewModel(application: Application) : BaseViewModel(application
}
fun loadContent(rssSource: RssSource) {
isLoading = true
Rss.getArticles(sortName, sortUrl, rssSource, null, 1)
page = 1
Rss.getArticles(sortName, sortUrl, rssSource, null, page)
.onSuccess(Dispatchers.IO) {
nextPageUrl = it.nextPageUrl
it.articles.let { list ->