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:
Claudio Cambra 2024-10-29 12:05:59 +08:00 коммит произвёл Matthieu Gallien
Родитель 1b87aa95ce
Коммит d56522f524
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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")) {