1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-22 05:38:36 +01:00

TagReaderTagLib: Add id3v2 parsing for RIFF WAV files

This commit is contained in:
Robert Gingras 2024-04-15 06:58:16 -04:00 committed by Jonas Kvinge
parent 90703703aa
commit ab8e687f96

View File

@ -529,6 +529,12 @@ bool TagReaderTagLib::ReadFile(const QString &filename, spb::tagreader::SongMeta
if (tag) TStringToStdString(tag->comment(), song->mutable_comment());
}
else if (TagLib::RIFF::WAV::File *file_wav = dynamic_cast<TagLib::RIFF::WAV::File*>(fileref->file())) {
if (file_wav->hasID3v2Tag()) {
ParseID3v2Tag(file_wav->ID3v2Tag(), &disc, &compilation, song);
}
}
else if (tag) {
TStringToStdString(tag->comment(), song->mutable_comment());
}