fix webdav prop get (#1023)

修复了displayname为空,potplayer可以正常使用webdav功能
This commit is contained in:
WeidiDeng 2021-09-27 22:28:36 +08:00 committed by GitHub
parent 65c4367689
commit 9ff1b47646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,7 @@ func props(ctx context.Context, fs *filesystem.FileSystem, ls LockSystem, fi Fil
}
// Otherwise, it must either be a live property or we don't know it.
if prop := liveProps[pn]; prop.findFn != nil && (prop.dir || !isDir) {
innerXML, err := prop.findFn(ctx, fs, ls, "", fi)
innerXML, err := prop.findFn(ctx, fs, ls, fi.GetName(), fi)
if err != nil {
return nil, err
}