Suppress warning about cover type for ID3v1 tag when also an ID3v2 tag is present

This commit is contained in:
Martchus 2021-06-01 22:05:07 +02:00
parent 7ada28b06e
commit 523971ad9d
1 changed files with 2 additions and 1 deletions

View File

@ -716,7 +716,8 @@ void setTagInfo(const SetTagInfoArgs &args)
}
} else {
if (parts.size() > 1) {
diag.emplace_back(DiagLevel::Warning,
diag.emplace_back(
tag->type() == TagType::Id3v1Tag && fileInfo.hasId3v2Tag() ? DiagLevel::Information : DiagLevel::Warning,
argsToString("Ignoring cover type \"", parts[1], "\" for ", tag->typeName(),
". It is only supported by the cover field and the tag formats ID3v2 and Vorbis Comment."),
context);