From ab8e687f966eae328eff9bda34882d4035764626 Mon Sep 17 00:00:00 2001 From: Robert Gingras Date: Mon, 15 Apr 2024 06:58:16 -0400 Subject: [PATCH] TagReaderTagLib: Add id3v2 parsing for RIFF WAV files --- ext/libstrawberry-tagreader/tagreadertaglib.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/libstrawberry-tagreader/tagreadertaglib.cpp b/ext/libstrawberry-tagreader/tagreadertaglib.cpp index ff117746..63381cf6 100644 --- a/ext/libstrawberry-tagreader/tagreadertaglib.cpp +++ b/ext/libstrawberry-tagreader/tagreadertaglib.cpp @@ -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(fileref->file())) { + if (file_wav->hasID3v2Tag()) { + ParseID3v2Tag(file_wav->ID3v2Tag(), &disc, &compilation, song); + } + } + else if (tag) { TStringToStdString(tag->comment(), song->mutable_comment()); }