2010-10-20, 22:50
Montellese Wrote:Did anyone else notice a strange behaviour of the "rating" field when using AudioLibrary.GetSongs()? I always getfor all songs. It works fine for AudioLibrary.GetAlbums() but I noticed that this one is handled differently in the JSON RPC code:Code:"rating": 48
Code:if (item->IsAlbum() && item->HasProperty(field))
{
if (field == "album_rating")
object[field] = item->GetPropertyInt(field);
else
object[field] = item->GetProperty(field);
}
Or is there a reason that the value is 48 for every song? I check the "song" table in the MyMusic7.db database file and saw that most of the songs have a rating of 0.
Heh, looks like it's using the ASCII value somehow (48 = ASCII code for '0'). Check if it's in Trac, and if not, file a bug (and a patch, if possible).