Commit 1b626ca3 authored by Elvis Angelaccio's avatar Elvis Angelaccio

cliunarchiver: fix detection of multivolumes archives

parent fa931d05
......@@ -230,6 +230,15 @@ void CliPlugin::readJsonOutput()
}
const QJsonObject json = jsonDoc.object();
const QJsonObject properties = json.value(QStringLiteral("lsarProperties")).toObject();
const QJsonArray volumes = properties.value(QStringLiteral("XADVolumes")).toArray();
if (volumes.count() > 1) {
qCDebug(ARK) << "Detected multivolume archive";
m_numberOfVolumes = volumes.count();
setMultiVolume(true);
}
const QJsonArray entries = json.value(QStringLiteral("lsarContents")).toArray();
foreach (const QJsonValue& value, entries) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment