Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/src/main/java/io/legado/app/help/AppWebDav.kt
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,10 @@ object AppWebDav {
}
appDb.bookDao.all.forEach { book ->
val progressFileName = getProgressFileName(book.name, book.author)
val webDavFile = map[progressFileName]
webDavFile ?: return
val webDavFile = map[progressFileName] ?: return@forEach
if (webDavFile.lastModify <= book.syncTime) {
//本地同步时间大于上传时间不用同步
return
return@forEach
}
getBookProgress(book)?.let { bookProgress ->
if (bookProgress.durChapterIndex > book.durChapterIndex
Expand Down
Loading