mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
压缩文件和远程文件自动恢复
This commit is contained in:
@@ -399,10 +399,10 @@ object LocalBook {
|
||||
AppWebDav.authorization?.let { WebDav(webDavUrl, it) }
|
||||
?: throw WebDavException("Unexpected defaultBookWebDav")
|
||||
}
|
||||
val InputStream = runBlocking {
|
||||
val inputStream = runBlocking {
|
||||
webdav.downloadInputStream()
|
||||
}
|
||||
InputStream.use {
|
||||
inputStream.use {
|
||||
if (localBook.isArchive) {
|
||||
// 压缩包
|
||||
val fileUri = saveBookFile(it, localBook.archiveName)
|
||||
|
||||
Reference in New Issue
Block a user