1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 18:58:55 +01:00

Make ConvertPOPMRating works with slightly different POPM rating scheme for 5 stars. Fix issue 3794.

This commit is contained in:
Arnaud Bienner 2013-08-02 22:13:29 +02:00
parent c32408eded
commit 8ddba1dfb5

View File

@ -946,7 +946,7 @@ float TagReader::ConvertPOPMRating(const int POPM_rating) {
return 0.40; // 2 stars
} else if (POPM_rating < 0xC0) {
return 0.60; // 3 stars
} else if (POPM_rating < 0xFF) {
} else if (POPM_rating < 0xFC) { // some players store 5 stars as 0xFC
return 0.80; // 4 stars
}
return 1.0; // 5 stars