下载远程webdav书籍时检查保存路径是否设置
This commit is contained in:
1 parent
cb7dc5ab7c
commit
2bdfd70c34
1 file changed
+2
@@ -308,6 +308,8 @@ object LocalBook {
|
|||||||
val webDavUrl = localBook.getRemoteUrl()
|
val webDavUrl = localBook.getRemoteUrl()
|
||||||
if (webDavUrl.isNullOrBlank()) return null
|
if (webDavUrl.isNullOrBlank()) return null
|
||||||
try {
|
try {
|
||||||
|
AppConfig.defaultBookTreeUri
|
||||||
|
?: throw NoStackTraceException("没有设置书籍保存位置!")
|
||||||
val uri = AppWebDav.authorization?.let {
|
val uri = AppWebDav.authorization?.let {
|
||||||
val webdav = WebDav(webDavUrl, it)
|
val webdav = WebDav(webDavUrl, it)
|
||||||
runBlocking {
|
runBlocking {
|
||||||
|
|||||||
Reference in new issue
Block a user