Skip subsonic multi-genre tags

This commit is contained in:
xoza 2023-10-12 11:17:40 +02:00 committed by John Maguire
parent 7b678f26e0
commit 4768cb9efb
1 changed files with 5 additions and 0 deletions

View File

@ -530,6 +530,11 @@ void SubsonicLibraryScanner::OnGetAlbumFinished(QNetworkReply* reply) {
// Read song information
while (reader.readNextStartElement()) {
// skip multi-artist and multi-genre tags
if ((reader.name() == "artists") || (reader.name() == "genres")) {
reader.skipCurrentElement();
continue;
}
if (reader.name() != "song") {
ParsingError("song tag expected. Aborting scan.");
return;