2010-10-20, 22:22
Did anyone else notice a strange behaviour of the "rating" field when using AudioLibrary.GetSongs()? I always get for all songs. It works fine for AudioLibrary.GetAlbums() but I noticed that this one is handled differently in the JSON RPC code:
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.
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.