Merge pull request #2043 from 821938089/fix-webdav-download

fix webdav download
pull/2046/head
kunfei 2 years ago committed by GitHub
commit 84eff961e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/src/main/java/io/legado/app/lib/webdav/WebDav.kt

@ -151,8 +151,9 @@ open class WebDav(val path: String, val authorization: Authorization) {
.toInstant(ZoneOffset.of("+8")).toEpochMilli() .toInstant(ZoneOffset.of("+8")).toEpochMilli()
} }
}.getOrNull() ?: 0 }.getOrNull() ?: 0
val fullURL = NetworkUtils.getAbsoluteURL(baseUrl, href)
webDavFile = WebDavFile( webDavFile = WebDavFile(
"$baseUrl$href", fullURL,
authorization, authorization,
displayName = fileName, displayName = fileName,
urlName = urlName, urlName = urlName,

Loading…
Cancel
Save