pull/52/head
kunfei 6 years ago
parent e8fb9b0694
commit a9221654f6
  1. 2
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -50,6 +50,7 @@ class DownloadService : BaseService() {
val webBook = WebBook(bookSource)
for (index in start..end) {
App.db.bookChapterDao().getChapter(bookUrl, index)?.let { chapter ->
if (!BookHelp.hasContent(book, chapter)) {
webBook.getContent(book, chapter, scope = this, context = searchPool)
.onStart {
updateNotification("${chapter.title}开始下载")
@ -64,6 +65,7 @@ class DownloadService : BaseService() {
}
}
}
}
/**
* 更新通知

Loading…
Cancel
Save