下载远程webdav书籍时检查保存路径是否设置
This commit is contained in:
@@ -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