Add copyright/copyrightURL support and display it in the release view

This commit is contained in:
emeric
2018-09-21 14:00:15 +02:00
parent c464200644
commit f5f6136159
13 changed files with 139 additions and 19 deletions
+2
View File
@@ -50,6 +50,8 @@ namespace MetaData
MusicBrainzTrackID, // string
MusicBrainzRecordingID, // string
AcoustID, // string
Copyright, // string
CopyrightURL, // string
};
// Used by Streams
+8
View File
@@ -194,6 +194,14 @@ TagLibParser::parse(const boost::filesystem::path& p, bool debug)
if (items.find(MetaData::Type::HasCover) == items.end())
items.insert( std::make_pair(MetaData::Type::HasCover, true));
}
else if (tag == "COPYRIGHT")
{
items.insert(std::make_pair(MetaData::Type::Copyright, values.front().to8Bit()));
}
else if (tag == "COPYRIGHTURL")
{
items.insert(std::make_pair(MetaData::Type::CopyrightURL, values.front().to8Bit()));
}
else if (_clusterTypeNames.find(tag) != _clusterTypeNames.end())
{
std::set<std::string> clusterNames;