pull/2382/head
Xwite 2 years ago committed by GitHub
parent 45380355e7
commit 5e874aed52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt

@ -122,7 +122,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
book.origin = BookType.localTag book.origin = BookType.localTag
} 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.bookUrl = if (uri.isContentScheme()) uri.toString() else uri.path!!
} }
} }
} }

Loading…
Cancel
Save