mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -22,14 +22,10 @@ class RemoteBookWebDav(val rootBookUrl: String, val authorization: Authorization
|
||||
|
||||
init {
|
||||
runBlocking {
|
||||
initRemoteContext()
|
||||
WebDav(rootBookUrl, authorization).makeAsDir()
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun initRemoteContext() {
|
||||
WebDav(rootBookUrl, authorization).makeAsDir()
|
||||
}
|
||||
|
||||
@Throws(Exception::class)
|
||||
override suspend fun getRemoteBookList(path: String): MutableList<RemoteBook> {
|
||||
if (!NetworkUtils.isAvailable()) throw NoStackTraceException("网络不可用")
|
||||
|
||||
Reference in New Issue
Block a user