1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Fix genre parsing from Jamendo

This commit is contained in:
David Sansome 2010-11-28 14:13:46 +00:00
parent dd937fb06d
commit 68ae8aec0e

View File

@ -342,7 +342,7 @@ Song JamendoService::ReadTrack(const QString& artist,
// Some durations are 123.0 and some are 123.
length = length.split('.')[0];
song.set_length(length.toInt());
} else if (name == "genre") {
} else if (name == "id3genre") {
int genre_id = reader->readElementText().toInt();
// In theory, genre 0 is "blues"; in practice it's invalid.
if (genre_id != 0) {