Ensure the taglib_plugin is compatible with Taglib2

This commit is contained in:
casey langen 2024-07-04 11:22:53 -07:00
parent b8583c8d9c
commit bec721f38a

View File

@ -320,7 +320,7 @@ bool TaglibMetadataReader::ReadGeneric(
if (!handled) { if (!handled) {
const auto mp4File = dynamic_cast<TagLib::MP4::File*>(file.file()); const auto mp4File = dynamic_cast<TagLib::MP4::File*>(file.file());
if (mp4File && mp4File->hasMP4Tag()) { if (mp4File && mp4File->hasMP4Tag()) {
auto mp4TagMap = static_cast<TagLib::MP4::Tag*>(tag)->itemListMap(); auto mp4TagMap = static_cast<TagLib::MP4::Tag*>(tag)->itemMap();
this->ExtractValueForKey(mp4TagMap, "aART", "album_artist", target); this->ExtractValueForKey(mp4TagMap, "aART", "album_artist", target);
this->ExtractValueForKey(mp4TagMap, "disk", "disc", target); this->ExtractValueForKey(mp4TagMap, "disk", "disc", target);
this->ExtractReplayGain(mp4TagMap, target); this->ExtractReplayGain(mp4TagMap, target);