diff --git a/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt b/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt index 7258e1c4d..94af92ca0 100644 --- a/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt @@ -50,8 +50,11 @@ class DownloadViewModel(application: Application) : BaseViewModel(application) { .append("\n") .append(context.getString(R.string.author_show, book.author)) App.db.bookChapterDao().getChapterList(book.bookUrl).forEach { chapter -> - BookHelp.getContent(book, chapter)?.let { - stringBuilder.append("\n").append(it) + BookHelp.getContent(book, chapter).let { + stringBuilder.append("\n\n") + .append(chapter.title) + .append("\n") + .append(it) } } return stringBuilder.toString()