зеркало из https://github.com/nextcloud/desktop.git
Fetch and record live photo properties during remote discovery single directory job
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
1b87aa95ce
Коммит
d56522f524
|
@ -400,7 +400,8 @@ void DiscoverySingleDirectoryJob::start()
|
||||||
<< "http://owncloud.org/ns:dDC"
|
<< "http://owncloud.org/ns:dDC"
|
||||||
<< "http://owncloud.org/ns:permissions"
|
<< "http://owncloud.org/ns:permissions"
|
||||||
<< "http://owncloud.org/ns:checksums"
|
<< "http://owncloud.org/ns:checksums"
|
||||||
<< "http://nextcloud.org/ns:is-encrypted";
|
<< "http://nextcloud.org/ns:is-encrypted"
|
||||||
|
<< "http://nextcloud.org/ns:metadata-files-live-photo";
|
||||||
|
|
||||||
if (_isRootPath)
|
if (_isRootPath)
|
||||||
props << "http://owncloud.org/ns:data-fingerprint";
|
props << "http://owncloud.org/ns:data-fingerprint";
|
||||||
|
@ -550,6 +551,10 @@ static void propertyMapToRemoteInfo(const QMap<QString, QString> &map, RemotePer
|
||||||
if (property == "lock-token") {
|
if (property == "lock-token") {
|
||||||
result.lockToken = value;
|
result.lockToken = value;
|
||||||
}
|
}
|
||||||
|
if (property == "metadata-files-live-photo") {
|
||||||
|
result.livePhotoFile = value;
|
||||||
|
result.isLivePhoto = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.isDirectory && map.contains("size")) {
|
if (result.isDirectory && map.contains("size")) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче