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:
parent
90703703aa
commit
ab8e687f96
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user