mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 02:26:44 +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());
|
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) {
|
else if (tag) {
|
||||||
TStringToStdString(tag->comment(), song->mutable_comment());
|
TStringToStdString(tag->comment(), song->mutable_comment());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user