With "but can't write a new rating with the API" I mean that I can't change the rating value of the song.
I have test it with 5 0,5 and with the 100 scale. After I have runned the code, I go to the next song. So normally the rating has been saved.
But no rating has saved.
And the toString() function of a float use the . notation of a string
. But with replace you can change the "." to ",".
I have changed the source to:
public void changeRating(float number)
{
String url = mbApiInterface.NowPlaying_GetFileUrl();
string rating = number.ToString().Replace(".", ",");
mbApiInterface.Library_SetFileTag(url, MetaDataType.Rating, rating);
}
But doesn't work.