Removed orphan items after scan, make multi tag values work again

This commit is contained in:
emeric
2018-09-24 12:56:36 +02:00
parent f5f6136159
commit 87f1f1a13d
6 changed files with 28 additions and 16 deletions
+7 -2
View File
@@ -205,8 +205,13 @@ TagLibParser::parse(const boost::filesystem::path& p, bool debug)
else if (_clusterTypeNames.find(tag) != _clusterTypeNames.end())
{
std::set<std::string> clusterNames;
for (const auto& value : values)
clusterNames.insert(value.to8Bit(true));
for (const auto& valueList : values)
{
auto values = splitString(valueList.to8Bit(), "/,;");
for (auto value : values)
clusterNames.insert(value);
}
if (!clusterNames.empty())
clusters[tag] = clusterNames;