pull/2382/head
kunfei 2 years ago
parent 45380355e7
commit e5583dee0b
  1. 1
      app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt

@ -123,6 +123,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
} else if (remoteBook.lastModify > book.lastCheckTime) { } else if (remoteBook.lastModify > book.lastCheckTime) {
val uri = RemoteBookWebDav.downloadRemoteBook(remoteBook) val uri = RemoteBookWebDav.downloadRemoteBook(remoteBook)
book.origin = if (uri.isContentScheme()) uri.toString() else uri.path!! book.origin = if (uri.isContentScheme()) uri.toString() else uri.path!!
book.lastCheckTime = remoteBook.lastModify
} }
} }
} }

Loading…
Cancel
Save